org.eclipse.gmt.umlx.editor.view
Class AbstractNodeView<M extends GElement>
java.lang.Object
org.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gmt.umlx.editor.view.AbstractNodeView<M>
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, org.eclipse.gef.EditPart, org.eclipse.gef.GraphicalEditPart, org.eclipse.gef.RequestConstants, IModelChangeListener, INodeViewElement, INotifierElement, IVisibleElement
- Direct Known Subclasses:
- BaseView, CompartmentView, SheetView
public abstract class AbstractNodeView<M extends GElement>
- extends org.eclipse.gef.editparts.AbstractGraphicalEditPart
- implements INodeViewElement, IModelChangeListener
AbstractLinkView, AbstractNodeView, NotifierOutline provide duplicate code that
would ideally be in AbstractEditPart.
Fields inherited from interface org.eclipse.gef.EditPart |
SELECTED, SELECTED_NONE, SELECTED_PRIMARY |
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 |
Methods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
addNodeListener, addNotify, getAdapter, getContentPane, getFigure, getSourceConnections, getTargetConnections, removeNodeListener, removeNotify, 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, setParent, 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.gef.EditPart |
addEditPartListener, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getParent, getRoot, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest |
AbstractNodeView
public AbstractNodeView(INodeRegimeCo0<M,?> regime,
SheetViewer viewer,
M model)
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 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
doRefreshSourceConnections
public void doRefreshSourceConnections()
- Specified by:
doRefreshSourceConnections
in interface INodeViewElement
doRefreshTargetConnections
public void doRefreshTargetConnections()
- Specified by:
doRefreshTargetConnections
in interface INodeViewElement
doRefreshVisuals
public void doRefreshVisuals()
- Specified by:
doRefreshVisuals
in interface INotifierElement
getDragTracker
public org.eclipse.gef.DragTracker getDragTracker(org.eclipse.gef.Request request)
- Overridden to suppress cloning which conflicts with Ecore/Gcore shufting.
- Specified by:
getDragTracker
in interface org.eclipse.gef.EditPart
- Overrides:
getDragTracker
in class org.eclipse.gef.editparts.AbstractGraphicalEditPart
- See Also:
EditPart.getDragTracker(Request)
getEditPart
public org.eclipse.gef.EditPart getEditPart()
- Specified by:
getEditPart
in interface IVisibleElement
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
getRefresher
public NodeViewRefresher<INodeViewElement> getRefresher()
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
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.AbstractGraphicalEditPart
refreshAllVisuals
public void refreshAllVisuals()
- Refresh all visual elements of this node and all its children.
toString
public java.lang.String toString()
- Overrides:
toString
in class org.eclipse.gef.editparts.AbstractEditPart