org.eclipse.gmf.tooling.runtime.edit.policies.effect
Class AbstractOclVisualEffectEditPolicy

java.lang.Object
  extended by org.eclipse.gef.editpolicies.AbstractEditPolicy
      extended by org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy
          extended by org.eclipse.gmf.tooling.runtime.edit.policies.effect.AbstractOclVisualEffectEditPolicy
All Implemented Interfaces:
org.eclipse.gef.EditPolicy, org.eclipse.gef.RequestConstants, org.eclipse.gmf.runtime.diagram.core.listener.NotificationListener

public abstract class AbstractOclVisualEffectEditPolicy
extends org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy
org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy.CanonicalElementAdapter
 
Field Summary
 
Fields inherited from interface org.eclipse.gef.EditPolicy
COMPONENT_ROLE, CONNECTION_BENDPOINTS_ROLE, CONNECTION_ENDPOINTS_ROLE, CONNECTION_ROLE, CONTAINER_ROLE, DIRECT_EDIT_ROLE, GRAPHICAL_NODE_ROLE, LAYOUT_ROLE, NODE_ROLE, PRIMARY_DRAG_ROLE, SELECTION_FEEDBACK_ROLE, TREE_CONTAINER_ROLE
 
Fields inherited from interface org.eclipse.gef.RequestConstants
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER
 
Constructor Summary
AbstractOclVisualEffectEditPolicy()
           
AbstractOclVisualEffectEditPolicy(OclTrackerFactory.Type factoryType)
           
AbstractOclVisualEffectEditPolicy(OclTrackerFactory factory)
           
 
Method Summary
 void activate()
           
 void deactivate()
           
protected  void ensureHasStyle(org.eclipse.emf.ecore.EClass styleClass)
           
protected  void executeICommand(org.eclipse.gmf.runtime.common.core.command.ICommand command)
           
protected  org.eclipse.emf.ecore.EObject getContext()
           
protected abstract  String getExpressionBody()
           
protected  org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart getHostImpl()
           
protected  OclTracker.Registrator getOclRegistrator()
           
protected  List<org.eclipse.emf.ecore.EObject> getSemanticChildrenList()
          We are using CanonicalEditPolicy infrastructure for listening to the model, executing commands, etc.
protected  void handleNotificationEvent(org.eclipse.emf.common.notify.Notification event)
           
protected  void refreshSemantic()
           
protected abstract  void setVisualEffectValue(Object value)
           
protected  boolean shouldHandleNotificationEvent(org.eclipse.emf.common.notify.Notification event)
           
 
Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy
addListenerFilter, addListenerFilter, canCreate, cleanCanonicalSemanticChildren, createViews, deleteViews, enableRefresh, executeCommand, getCanonicalStyle, getCreateViewCommand, getCreateViewCommand, getCreateViewRequest, getDefaultFactoryHint, getDeleteViewCommand, getFactoryHint, getFactoryHint, getFeaturesToSynchronize, getFeatureToSynchronize, getRegisteredEditPolicies, getRegisteredEditPolicies, getSemanticHost, getViewChildren, getViewDescriptor, getViewDescriptor, getViewer, getViewIndexFor, getViewReferers, host, isActive, isEnabled, isHostStillValid, isOrphaned, makeViewsImmutable, makeViewsMutable, notifyChanged, postProcessRefreshSemantic, refresh, refreshOnActivate, refreshSemanticChildren, removeListenerFilter, resolveSemanticElement, setEnable, setHost, shouldDeleteView
 
Methods inherited from class org.eclipse.gef.editpolicies.AbstractEditPolicy
debugFeedback, eraseSourceFeedback, eraseTargetFeedback, getCommand, getHost, getTargetEditPart, showSourceFeedback, showTargetFeedback, toString, understandsRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractOclVisualEffectEditPolicy

public AbstractOclVisualEffectEditPolicy()

AbstractOclVisualEffectEditPolicy

public AbstractOclVisualEffectEditPolicy(OclTrackerFactory.Type factoryType)

AbstractOclVisualEffectEditPolicy

public AbstractOclVisualEffectEditPolicy(OclTrackerFactory factory)
Method Detail

getExpressionBody

protected abstract String getExpressionBody()

getContext

protected org.eclipse.emf.ecore.EObject getContext()

shouldHandleNotificationEvent

protected boolean shouldHandleNotificationEvent(org.eclipse.emf.common.notify.Notification event)
Overrides:
shouldHandleNotificationEvent in class org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy

activate

public void activate()
Specified by:
activate in interface org.eclipse.gef.EditPolicy
Overrides:
activate in class org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy

refreshSemantic

protected void refreshSemantic()
Overrides:
refreshSemantic in class org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy

deactivate

public void deactivate()
Specified by:
deactivate in interface org.eclipse.gef.EditPolicy
Overrides:
deactivate in class org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy

setVisualEffectValue

protected abstract void setVisualEffectValue(Object value)

handleNotificationEvent

protected void handleNotificationEvent(org.eclipse.emf.common.notify.Notification event)
Overrides:
handleNotificationEvent in class org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy

executeICommand

protected final void executeICommand(org.eclipse.gmf.runtime.common.core.command.ICommand command)

getHostImpl

protected org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart getHostImpl()

getSemanticChildrenList

protected final List<org.eclipse.emf.ecore.EObject> getSemanticChildrenList()
We are using CanonicalEditPolicy infrastructure for listening to the model, executing commands, etc. However, we are not going to install/remove any new children from view-tree.

Specified by:
getSemanticChildrenList in class org.eclipse.gmf.runtime.diagram.ui.editpolicies.CanonicalEditPolicy

ensureHasStyle

protected final void ensureHasStyle(org.eclipse.emf.ecore.EClass styleClass)

getOclRegistrator

protected final OclTracker.Registrator getOclRegistrator()


Copyright © 2012. All Rights Reserved.