org.eclipse.gmt.umlx.editor.view
Class AbstractLinkView<M extends GModelElement>

java.lang.Object
  extended by org.eclipse.gef.editparts.AbstractEditPart
      extended by org.eclipse.gef.editparts.AbstractGraphicalEditPart
          extended by org.eclipse.gef.editparts.AbstractConnectionEditPart
              extended by org.eclipse.gmt.umlx.editor.view.AbstractLinkView<M>
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.gef.ConnectionEditPart, org.eclipse.gef.EditPart, org.eclipse.gef.GraphicalEditPart, org.eclipse.gef.LayerConstants, org.eclipse.gef.RequestConstants, IModelChangeListener, ILinkViewElement, INodeViewElement, INotifierElement, IVisibleElement
Direct Known Subclasses:
GLinkElementView

public abstract class AbstractLinkView<M extends GModelElement>
extends org.eclipse.gef.editparts.AbstractConnectionEditPart
implements ILinkViewElement, IModelChangeListener

AbstractLinkView, AbstractNodeView, NotifierOutline provide duplicate code that would ideally be in AbstractEditPart.


Field Summary
 
Fields inherited from interface org.eclipse.gef.EditPart
SELECTED, SELECTED_NONE, SELECTED_PRIMARY
 
Fields inherited from interface org.eclipse.gef.LayerConstants
CONNECTION_LAYER, FEEDBACK_LAYER, GRID_LAYER, GUIDE_LAYER, HANDLE_LAYER, PRIMARY_LAYER, PRINTABLE_LAYERS, SCALABLE_LAYERS, SCALED_FEEDBACK_LAYER
 
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
AbstractLinkView(ILinkRegimeCo0<?,M,?,?> regime, SheetViewer viewer, M model)
           
 
Method Summary
 void activate()
           
 boolean canDelete()
           
 IProblemMessage<?> computeProblemMessage()
           
 void deactivate()
           
 void doRefreshChildren()
           
 void doRefreshMappings(java.util.List<java.lang.Object> newMappings)
           
 void doRefreshMarkers(ActiveEditDomain domain)
           
 void doRefreshNotifiers(java.util.List<org.eclipse.emf.common.notify.Notifier> newNotifiers)
           
 void doRefreshSourceAnchor()
           
 void doRefreshSourceConnections()
           
 void doRefreshTargetAnchor()
           
 void doRefreshTargetConnections()
           
 void doRefreshVisuals()
           
 IDecorationProvider getDecorationProvider()
           
 org.eclipse.gef.EditPart getEditPart()
           
 LinkFigure getFigure()
           
 M getModel()
           
 IProblem getProblem()
           
 java.lang.Object getSelection()
          Return the object to use when this is selected.
 SheetViewer getViewer()
           
 void modelChanged(org.eclipse.emf.common.notify.Notification notification)
           
 void queueRefreshMarkers()
           
 void queueRefreshVisuals()
           
 void refresh()
          Deprecated. Override doRefresh or Invoke refresher.refresh
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.gef.editparts.AbstractConnectionEditPart
addNotify, getAdapter, getConnectionFigure, getDragTracker, getSource, getTarget, removeNotify, setParent, setSource, setTarget
 
Methods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
addNodeListener, getContentPane, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint
 
Methods inherited from class org.eclipse.gef.editparts.AbstractEditPart
addEditPartListener, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getParent, getRoot, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, removeEditPartListener, removeEditPolicy, setFocus, setModel, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.refresh.ILinkViewElement
basicGetCoModel
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.refresh.INodeViewElement
getCoModel
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.refresh.INotifierElement
isActive, isSelectable
 
Methods inherited from interface org.eclipse.gef.GraphicalEditPart
addNodeListener, getContentPane, getSourceConnections, getTargetConnections, removeNodeListener, setLayoutConstraint
 
Methods inherited from interface org.eclipse.gef.EditPart
addEditPartListener, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getParent, getRoot, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, removeEditPartListener, removeEditPolicy, setFocus, setModel, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest
 

Constructor Detail

AbstractLinkView

public AbstractLinkView(ILinkRegimeCo0<?,M,?,?> regime,
                        SheetViewer viewer,
                        M model)
Method Detail

activate

public void activate()
Specified by:
activate in interface org.eclipse.gef.EditPart
Overrides:
activate in class org.eclipse.gef.editparts.AbstractGraphicalEditPart

canDelete

public boolean canDelete()
Specified by:
canDelete in interface IVisibleElement

computeProblemMessage

public final IProblemMessage<?> computeProblemMessage()
Specified by:
computeProblemMessage in interface INotifierElement

deactivate

public void deactivate()
Specified by:
deactivate in interface org.eclipse.gef.EditPart
Overrides:
deactivate in class org.eclipse.gef.editparts.AbstractGraphicalEditPart

doRefreshChildren

public void doRefreshChildren()
Specified by:
doRefreshChildren in interface INotifierElement

doRefreshMappings

public void doRefreshMappings(java.util.List<java.lang.Object> newMappings)
Specified by:
doRefreshMappings in interface INotifierElement

doRefreshMarkers

public void doRefreshMarkers(ActiveEditDomain domain)
Specified by:
doRefreshMarkers in interface INotifierElement

doRefreshNotifiers

public void doRefreshNotifiers(java.util.List<org.eclipse.emf.common.notify.Notifier> newNotifiers)
Specified by:
doRefreshNotifiers in interface INotifierElement

doRefreshSourceAnchor

public void doRefreshSourceAnchor()
Specified by:
doRefreshSourceAnchor in interface ILinkViewElement

doRefreshSourceConnections

public void doRefreshSourceConnections()
Specified by:
doRefreshSourceConnections in interface INodeViewElement

doRefreshTargetAnchor

public void doRefreshTargetAnchor()
Specified by:
doRefreshTargetAnchor in interface ILinkViewElement

doRefreshTargetConnections

public void doRefreshTargetConnections()
Specified by:
doRefreshTargetConnections in interface INodeViewElement

doRefreshVisuals

public void doRefreshVisuals()
Specified by:
doRefreshVisuals in interface INotifierElement

getDecorationProvider

public IDecorationProvider getDecorationProvider()
Specified by:
getDecorationProvider in interface ILinkViewElement

getEditPart

public org.eclipse.gef.EditPart getEditPart()
Specified by:
getEditPart in interface IVisibleElement

getFigure

public LinkFigure getFigure()
Specified by:
getFigure in interface org.eclipse.gef.GraphicalEditPart
Overrides:
getFigure in class org.eclipse.gef.editparts.AbstractGraphicalEditPart

getProblem

public IProblem getProblem()
Specified by:
getProblem in interface INotifierElement

getModel

public M getModel()
Specified by:
getModel in interface org.eclipse.gef.EditPart
Specified by:
getModel in interface IVisibleElement
Overrides:
getModel in class org.eclipse.gef.editparts.AbstractEditPart

getSelection

public java.lang.Object getSelection()
Description copied from interface: INodeViewElement
Return the object to use when this is selected.

Specified by:
getSelection in interface INodeViewElement
Returns:
the selection.

getViewer

public SheetViewer getViewer()
Specified by:
getViewer in interface org.eclipse.gef.EditPart
Specified by:
getViewer in interface INodeViewElement
Overrides:
getViewer in class org.eclipse.gef.editparts.AbstractEditPart

modelChanged

public void modelChanged(org.eclipse.emf.common.notify.Notification notification)
Specified by:
modelChanged in interface IModelChangeListener
Specified by:
modelChanged in interface INotifierElement

queueRefreshMarkers

public void queueRefreshMarkers()

queueRefreshVisuals

public void queueRefreshVisuals()
Specified by:
queueRefreshVisuals in interface INotifierElement

refresh

@Deprecated
public void refresh()
Deprecated. Override doRefresh or Invoke refresher.refresh

Specified by:
refresh in interface org.eclipse.gef.EditPart
Overrides:
refresh in class org.eclipse.gef.editparts.AbstractConnectionEditPart

toString

public java.lang.String toString()
Overrides:
toString in class org.eclipse.gef.editparts.AbstractEditPart