Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Using command Framework to add items to pagebooks
Using command Framework to add items to pagebooks [message #334240] Wed, 28 January 2009 15:40 Go to next message
Charles Godwin is currently offline Charles GodwinFriend
Messages: 57
Registered: July 2009
Member
There is one element of the new command framework that I cannot find
covered anywhere. I have experimented with code and have not solved the
problem. This makes me conclude that the answer is so obvious I can't see
it or that this is a bug / shortcoming of the Command Framework.

Using the command framework I have not been able to add, using only
plugin.xml entries, the ability to add /control toolbar menu items to a
specific page of a pagebook view.

For example, consider org.eclipse.ui.views.contentoutline.ContentOutline.
The Eclipse PDE implements, in code, various contributing content outline
pages for the outline view. When no editor is open the outline view has no
toolbar items. Depending on the file opened for edit, the icons in the
Content Outline view toolbar change to suit the file. Can that be done for
a newly contributing page using only command framework entries? I also
want to implement the same behaviour in my own pagebook views.

Is this a bug or a “feature” or am I missing something.

I posted this earlier but it seems to have disappeared - or was never
posted correctly.
Re: Using command Framework to add items to pagebooks [message #334243 is a reply to message #334240] Wed, 28 January 2009 18:13 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

It doesn't look possible.

If the page site and page action bars returned a ContributionManager you
could use IMenuService to populateContributionManager(*) (this would
allow your toolbar to pick up plugin.xml contributions) ... but I think
a page site returns a SubToolBarManager, which is not an instance of
ContributionManager.

You can open a bug at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI&short_desc=[Contributions]

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: Using command Framework to add items to pagebooks [message #334416 is a reply to message #334243] Sat, 07 February 2009 13:58 Go to previous message
Charles Godwin is currently offline Charles GodwinFriend
Messages: 57
Registered: July 2009
Member
Done

https://bugs.eclipse.org/bugs/show_bug.cgi?id=264036
Previous Topic:Print multiple files at once
Next Topic:How can i get SourceViewer in the TextEditor?
Goto Forum:
  


Current Time: Thu Nov 07 12:12:54 GMT 2024

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

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

Back to the top