Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Disabling and enabling icons
Disabling and enabling icons [message #290736] Wed, 31 August 2005 06:15 Go to next message
Eclipse UserFriend
Originally posted by: parsuram.panigrahi.wipro.com

I have created a plugin which listens on a port. I have 3 functionality.

1) Start the application so that it will listen on a port
2) Stop the application, it will close the socket.
3) Give some commands it will execute it on the open socket.

The application is working fine. I don't want anybody to stop the tool
when it is not started or give some command when it is already started.
Simillarly I don't want to start the tool when it is already started.

So I want to enable/disable start/stop/command buttons as required. I
define the name of the action class and the icon name in the plugin.xml.
What do I need to do to enable/disable the icons as required? Where can I
find the schema for plugin.xml?
Re: Disabling and enabling icons [message #290761 is a reply to message #290736] Wed, 31 August 2005 14:40 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

The action should have a method 'isEnabled' which returns true/false if it can run.
Previous Topic:Default editors ?
Next Topic:"Path must include project and resource name"
Goto Forum:
  


Current Time: Fri Apr 19 02:39:22 GMT 2024

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

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

Back to the top