Perspective and Dynamic Menu [message #464861] |
Fri, 16 March 2007 12:59 |
Eclipse User |
|
|
|
Originally posted by: eisenman.ilog.fr
Hi,
I'm trying to achieve the following for a RCP application:
(1)- define a menu that will appear only within a given perspective
(2)- menu contents must be set dynamically (not in plugin.xml)
(3)- menu contents and perspective are defined within a plugin.
(1) is easy. I cannot get (2) to work. There are several issues:
- how to access the main menubar from the plugin?
. casting IWorkbenchWindow to WorkbenchWindow?
- how to change the menu dynamically?
. I tried using a PerspectiveListener but it is notified too early
(actions are updated later)
. I tried setting a MenuListener on the menu but with no success either
Can someone please give me an advice on how to do this?
Is the above feature supported within the new dynamic menu scheme (Eclipse
3.3)?
Thanks in advance
Michel
|
|
|
Re: Perspective and Dynamic Menu [message #465178 is a reply to message #464861] |
Sat, 24 March 2007 22:37 |
Eclipse User |
|
|
|
Originally posted by: eisenman.ilog.fr
Is there nobody to answer this question?
Thanks
Michel
>
> I'm trying to achieve the following for a RCP application:
> (1)- define a menu that will appear only within a given perspective
> (2)- menu contents must be set dynamically (not in plugin.xml)
> (3)- menu contents and perspective are defined within a plugin.
>
> (1) is easy. I cannot get (2) to work. There are several issues:
> - how to access the main menubar from the plugin?
> . casting IWorkbenchWindow to WorkbenchWindow?
> - how to change the menu dynamically?
> . I tried using a PerspectiveListener but it is notified too early
> (actions are updated later)
> . I tried setting a MenuListener on the menu but with no success either
>
> Can someone please give me an advice on how to do this?
> Is the above feature supported within the new dynamic menu scheme (Eclipse
> 3.3)?
>
> Thanks in advance
>
> Michel
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02976 seconds