org.ceno.ui.handlers
Class CenoConnectCommand
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.ceno.ui.handlers.CenoConnectCommand
- All Implemented Interfaces:
- org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2
public class CenoConnectCommand
- extends org.eclipse.core.commands.AbstractHandler
Our sample handler extends AbstractHandler, an IHandler base class.
- See Also:
IHandler
,
AbstractHandler
Method Summary |
java.lang.Object |
execute(org.eclipse.core.commands.ExecutionEvent event)
the command has been executed, so extract extract the needed information
from the application context. |
boolean |
isEnabled()
|
Methods inherited from class org.eclipse.core.commands.AbstractHandler |
addHandlerListener, dispose, isHandled, removeHandlerListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CenoConnectCommand
public CenoConnectCommand()
- The constructor.
execute
public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event)
throws org.eclipse.core.commands.ExecutionException
- the command has been executed, so extract extract the needed information
from the application context.
- Throws:
org.eclipse.core.commands.ExecutionException
isEnabled
public boolean isEnabled()
-
- Specified by:
isEnabled
in interface org.eclipse.core.commands.IHandler
- Overrides:
isEnabled
in class org.eclipse.core.commands.AbstractHandler