Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Menu bar problem.
Menu bar problem. [message #462554] Thu, 13 October 2005 15:23 Go to next message
Greg is currently offline GregFriend
Messages: 21
Registered: July 2009
Junior Member
Hello.

I have this problem.
I'd like to add menu to menu bar. I can't add it using XML plugin
because it's not static menu. There is ActionBarContributor class that
is specific for Editor. But I need this menu to be present there when
editor is closed as well when it's open (even when only resource, or
package view is open). Is there a way to hook in somehow to do that??


Cheers, Greg
Re: Menu bar problem. [message #462660 is a reply to message #462554] Mon, 17 October 2005 07:51 Go to previous messageGo to next message
Greg is currently offline GregFriend
Messages: 21
Registered: July 2009
Junior Member
Hey guys.
No ideas??
Please ...

Greg

Greg wrote:
> Hello.
>
> I have this problem.
> I'd like to add menu to menu bar. I can't add it using XML plugin
> because it's not static menu. There is ActionBarContributor class that
> is specific for Editor. But I need this menu to be present there when
> editor is closed as well when it's open (even when only resource, or
> package view is open). Is there a way to hook in somehow to do that??
>
>
> Cheers, Greg
Re: Menu bar problem. [message #462663 is a reply to message #462660] Mon, 17 October 2005 09:33 Go to previous messageGo to next message
arne anka is currently offline arne ankaFriend
Messages: 133
Registered: July 2009
Senior Member
maybe, nobody really understands what you want to achieve (at last i
don't)?
maybe, make your menu a perspectiveExtension? so it's visible if only your
perspective is opne and active?
or make your menubar available and add your Contribution to it?
should be possible to access the ActionBarAdvisor of your app and thus the
meunubar by methods provided by the rcp-framework ...




> Greg
>
> Greg wrote:
>> Hello.
>> I have this problem.
>> I'd like to add menu to menu bar. I can't add it using XML plugin
>> because it's not static menu. There is ActionBarContributor class that
>> is specific for Editor. But I need this menu to be present there when
>> editor is closed as well when it's open (even when only resource, or
>> package view is open). Is there a way to hook in somehow to do that??
>> Cheers, Greg
Re: Menu bar problem. [message #462839 is a reply to message #462663] Thu, 20 October 2005 08:27 Go to previous message
Graham is currently offline GrahamFriend
Messages: 9
Registered: July 2009
Junior Member
I think the idea is to create a top-level menu with content that is
dynamic (like the buttons that have a drop-down menu which is generated
when the button arrow is pressed, not like the static actions defined in
plugin.xml) and which is associated with neither an editor nor a view.
There are somewhat suspect ways of adding menus, e.g. getting the active
Shell and directly modifying the menu bar, or get the active
WorkbenchWindow and obtain the MenuManager, but these would have trouble
coping with layout changes. Is there a better mechanism?
Previous Topic:swing-applet in plugin?
Next Topic:"Tabbed Folder" with multiple lines of "Tabbed Items"?
Goto Forum:
  


Current Time: Thu Apr 25 18:01:10 GMT 2024

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

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

Back to the top