开发者

Eclipse-plugin: How to add a command at a specific location in a toolbar using menuContribution?

Is there a way to add your command at a specific location in the main toolbar using locationURI ? What I'd like to achieve is to add my menuContribution after say the (File,Save, SaveAll, Print) so that it remains there and doesn't keep shifting to different positions drastically. I am currently using

<menuContribution
            locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">. 

This always adds your contributions at the end of the list in the toolbar.

I have tried replacing after=additions with after=print but it doesn't work.

Any inputs or suggestions will be really he开发者_如何学Pythonlpful.

Thanks


Check out IIDEActionConstants interface. Your locationURI would be toolbar:org.eclipse.ui.workbench.file?after=build.group. It's normal for different plugins to contribute to same locations.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜