Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Editors tab order + menu text
Editors tab order + menu text [message #676687] Mon, 06 June 2011 03:06 Go to next message
Eclipse UserFriend
Hello!

The method IWorkbenchPage.getEditorReferences() returns the array of open editors but not in an order of their tabs oder (for instance when I change this order manually by mouse).
How to get the information of the editors tab order?

Thank you.

[Updated on: Tue, 07 June 2011 07:43] by Moderator

Re: Editors tab order [message #676778 is a reply to message #676687] Mon, 06 June 2011 10:11 Go to previous messageGo to next message
Eclipse UserFriend
There's no way to get the editors in tab order in Eclipse 3.x. That information is buried in the implementation details of the default presentation: org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.getPartList()

In Eclipse 4.1, the model contains the editor references in tab order.

PW
Re: Editors tab order [message #677036 is a reply to message #676778] Tue, 07 June 2011 07:32 Go to previous messageGo to next message
Eclipse UserFriend
Thank you for answer! I am waiting for Eclipse 4.1 Smile.

Also one question...

The text or image of a menu item (created as a commands) can be updated in updateElement() method in IElementUpdater interface implemented in handler of a command based on AbstractHandler class. But how to update the menu text which contains such item? The way similar to update the item text don't work...

[Updated on: Tue, 07 June 2011 07:41] by Moderator

Re: Editors tab order [message #677052 is a reply to message #677036] Tue, 07 June 2011 08:18 Go to previous messageGo to next message
Eclipse UserFriend
ALGROM wrote on Tue, 07 June 2011 07:32
Thank you for answer! I am waiting for Eclipse 4.1 Smile.

Also one question...

The text or image of a menu item (created as a commands) can be updated in updateElement() method in IElementUpdater interface implemented in handler of a command based on AbstractHandler class.


Yes, that's true.

Quote:
But how to update the menu text which contains such item? The way similar to update the item text don't work...


You mean how do you update the containing Menu? There is no API for that.

PW
Re: Editors tab order [message #677059 is a reply to message #677052] Tue, 07 June 2011 08:37 Go to previous message
Eclipse UserFriend
Text of menu items (as commands) can be updated in the updateElement() method implemented into the handler of a command. Menus (not items, such as "File", "Edit" etc.) has no command but I need to update their texts programmically too...
Which is the right way. Of course, I can do it directly via the MenuMeneger but I think it is not right way in RCP.

[Updated on: Wed, 08 June 2011 03:27] by Moderator

Previous Topic:Only one instance of my RCP product
Next Topic:auto saving preferences
Goto Forum:
  


Current Time: Wed Jul 23 14:26:12 EDT 2025

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

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

Back to the top