How to calculate which side of the workbench a ContributionItem has been placed. [message #518421] |
Wed, 03 March 2010 23:53  |
Eclipse User |
|
|
|
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?
|
|
|
|
|
|
Re: How to calculate which side of the workbench a ContributionItem has been placed. [message #519050 is a reply to message #519002] |
Fri, 05 March 2010 16:13  |
Eclipse User |
|
|
|
Yeah, I've looked at that code too and not found a solution...
I would happily use the WorkbenchWindowControlContribution, but an existing bug in that class is preventing me from creating a Control Contribution with a non-standard height.
I've searched the forums for a solution for that too, but found nothing that works. I can create another bug / post for that issue, but I don't think it will help because there are already plenty.
Please let me know if anyone does know how to extend WorkbenchWindowControlContribution to create a contribution that is taller that the default.
|
|
|
Powered by
FUDForum. Page generated in 0.04968 seconds