Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to calculate which side of the workbench a ContributionItem has been placed.
How to calculate which side of the workbench a ContributionItem has been placed. [message #518164] Wed, 03 March 2010 10:32
ali Mising name is currently offline ali Mising nameFriend
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?
Previous Topic:controlling and managing a plugin
Next Topic:How to calculate which side of the workbench a ContributionItem has been placed.
Goto Forum:
  


Current Time: Fri Apr 26 15:26:09 GMT 2024

Powered by FUDForum. Page generated in 0.04678 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top