Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Get a hold of components from plugin.xml
Get a hold of components from plugin.xml [message #73858] Fri, 13 June 2003 12:37 Go to next message
Eclipse UserFriend
I wrote a plugin that added some actions and menus to the Eclipse toolbar
and menubar respectively.
What I need to do is be able to alter those components from the java code.
I need to be able to set up the menu contents and disable and enable the
buttons and that type of stuff based on who logged in. Does anyone know
how I can do that?

Thank you very much,
Greg Roberts
Re: Get a hold of components from plugin.xml [message #74088 is a reply to message #73858] Fri, 13 June 2003 14:43 Go to previous message
Eclipse UserFriend
Originally posted by: simon.ibm.oti.lab

You could make use of system properties. You can enable/disable actions
using the enablement element, which provides a way to use system properties.
See the extension point documentation for more info on the enablement
element.

The only problem is action enablement is only recalculated when there is a
selection change. So if you change the value of the system properties, the
actions dependent on it will not update until a selection change occurs. I
think there is already a bug report about this shortcoming that you can vote
for and add yourself to the CC list (and maybe want to contribute a fix for
it)

Simon :-)

"Greg" <gwrobert@us.ibm.com> wrote in message
news:bccuki$l7p$1@rogue.oti.com...
> I wrote a plugin that added some actions and menus to the Eclipse toolbar
> and menubar respectively.
> What I need to do is be able to alter those components from the java code.
> I need to be able to set up the menu contents and disable and enable the
> buttons and that type of stuff based on who logged in. Does anyone know
> how I can do that?
>
> Thank you very much,
> Greg Roberts
>
Previous Topic:problem with ant on 3.0 M1
Next Topic:FileSelectionDialog open up with no entries
Goto Forum:
  


Current Time: Sat May 31 09:34:49 EDT 2025

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

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

Back to the top