de.cau.cs.kieler.ksbase.ui.handler
Class TransformationEditPolicyProvider

java.lang.Object
  extended by org.eclipse.gmf.runtime.common.core.service.AbstractProvider
      extended by de.cau.cs.kieler.ksbase.ui.handler.TransformationEditPolicyProvider
All Implemented Interfaces:
IProvider, org.eclipse.gmf.runtime.diagram.ui.services.editpolicy.IEditPolicyProvider

public class TransformationEditPolicyProvider
extends AbstractProvider
implements org.eclipse.gmf.runtime.diagram.ui.services.editpolicy.IEditPolicyProvider

Provides an edit policy to create and execute KSBasE commands.

Rating proposed yellow
(2009-12-15)

Field Summary
static String EXECUTE_TRANSFORMATION_ROLE
          the key used to install an execute transformation edit policy.
static String KSBASE_POPUPBAR
          the key used to install an KSBasE popup bar edit policy.
 
Constructor Summary
TransformationEditPolicyProvider()
           
 
Method Summary
 void createEditPolicies(EditPart editPart)
          Creates the edit policies.
 boolean provides(IOperation operation)
          Checks if this edit policy provides an operation.
 
Methods inherited from class org.eclipse.gmf.runtime.common.core.service.AbstractProvider
addProviderChangeListener, fireProviderChange, removeProviderChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmf.runtime.common.core.service.IProvider
addProviderChangeListener, removeProviderChangeListener
 

Field Detail

EXECUTE_TRANSFORMATION_ROLE

public static final String EXECUTE_TRANSFORMATION_ROLE
the key used to install an execute transformation edit policy.

See Also:
Constant Field Values

KSBASE_POPUPBAR

public static final String KSBASE_POPUPBAR
the key used to install an KSBasE popup bar edit policy.

See Also:
Constant Field Values
Constructor Detail

TransformationEditPolicyProvider

public TransformationEditPolicyProvider()
Method Detail

createEditPolicies

public void createEditPolicies(EditPart editPart)
Creates the edit policies.

Specified by:
createEditPolicies in interface org.eclipse.gmf.runtime.diagram.ui.services.editpolicy.IEditPolicyProvider
Parameters:
editPart - The editPart to register this policy with.

provides

public boolean provides(IOperation operation)
Checks if this edit policy provides an operation.

Specified by:
provides in interface IProvider
Parameters:
operation - The operation to check.
Returns:
True if this edit policy provides the given operation