org.eclipse.emf.emfstore.internal.client.ui.handlers
Class AbstractEMFStoreHandler

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.core.commands.AbstractHandler
          extended by org.eclipse.emf.emfstore.internal.client.ui.handlers.AbstractEMFStoreHandlerWithResult<Object>
              extended by org.eclipse.emf.emfstore.internal.client.ui.handlers.AbstractEMFStoreHandler
All Implemented Interfaces:
org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2
Direct Known Subclasses:
AddServerHandler, AddTagHandler, BranchCheckoutHandler, ChangeSessionHandler, CheckoutHandler, CheckoutRevisionHandler, CommitProjectHandler, CompareProjectsHandler, CompareRevisionsHandler, CreateBranchHandler, CreateLocalProjectHandler, CreateProjectOnServerHandler, DeleteProjectHandler, DeleteProjectOnServerHandler, DeleteServerHandler, ExportChangesHandler, ExportProjectHandler, ExportProjectHistoryHandler, ExportProjectSpaceHandler, ExportWorkspaceHandler, ImportChangesHandler, ImportProjectHandler, ImportProjectHistoryHandler, ImportProjectSpaceHandler, ManageOrgUnitsHandler, MergeBranchHandler, ProjectInfoPropertiesHandler, ProjectPropertiesHandler, RegisterEPackageHandler, RemoveTagHandler, RevertCommitHandler, RevertHandler, SaveProjectSpaceHandler, ServerLoginHandler, ServerPropertiesHandler, ShareProjectHandler, ShowHistoryHandler, UndoLastOperationHandler, UpdateProjectHandler, UpdateProjectVersionHandler

public abstract class AbstractEMFStoreHandler
extends AbstractEMFStoreHandlerWithResult<Object>

Handlers are the top level abstraction that clients should use execute actions within the EMFStore workspace. They are responsible for calling the UI controllers and therefore provide helper methods that can determine the currently selected element, if needed.

Author:
ovonwesen, emueller
See Also:
AbstractEMFStoreHandlerWithResult

Constructor Summary
AbstractEMFStoreHandler()
           
 
Method Summary
abstract  void handle()
          Executes the handler.
 Object handleWithResult()
          Executes the handler and returns a result.
 
Methods inherited from class org.eclipse.emf.emfstore.internal.client.ui.handlers.AbstractEMFStoreHandlerWithResult
execute, getShell, requireSelection
 
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, isEnabled, isHandled, removeHandlerListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractEMFStoreHandler

public AbstractEMFStoreHandler()
Method Detail

handleWithResult

public Object handleWithResult()
Description copied from class: AbstractEMFStoreHandlerWithResult
Executes the handler and returns a result.

Specified by:
handleWithResult in class AbstractEMFStoreHandlerWithResult<Object>
Returns:
a return value of type T

handle

public abstract void handle()
Executes the handler.



Copyright © 2015. All Rights Reserved.