How to calculate which side of the workbench a ContributionItem has been placed. [message #518164] |
Wed, 03 March 2010 10:32 |
ali Mising name Messages: 38 Registered: July 2009 |
Member |
|
|
Hello all,
I need to determine on which side of the workbench (top, bottom, left or right) a toolbar ContributionItem has been placed. I understand how to initially position an item using the org.eclipse.ui.menu menuContribution locationURI setting, but I am unsure how to determine an items current location after it has been moved within a RCP Workbench.
I've noticed that WorkbenchWindowControlContribution's have handy getCurSide() method, but unfortunately ContributionItem's don't have this method. I know how to calculate a ContributionItem's orientation, but this doesn't help me know on which workbench side items currently resides.
I've searched the RCP UI model without much luck.
Does anyone have any ideas?
|
|
|
Powered by
FUDForum. Page generated in 0.04678 seconds