org.ceno.ui.handlers
Class CenoConnectCommand

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.core.commands.AbstractHandler
          extended by 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

Constructor Summary
CenoConnectCommand()
          The constructor.
 
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
 

Constructor Detail

CenoConnectCommand

public CenoConnectCommand()
The constructor.

Method Detail

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