org.eclipse.gmt.umlx.editor.outline
Class NotifierOutline<M extends org.eclipse.emf.common.notify.Notifier>

java.lang.Object
  extended by org.eclipse.gef.editparts.AbstractEditPart
      extended by org.eclipse.gef.editparts.AbstractTreeEditPart
          extended by org.eclipse.gmt.umlx.editor.outline.AbstractOutline
              extended by org.eclipse.gmt.umlx.editor.outline.NotifierOutline<M>
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.gef.EditPart, org.eclipse.gef.RequestConstants, org.eclipse.gef.TreeEditPart, IModelChangeListener, INotifierElement, IOutlineElement, IVisibleElement
Direct Known Subclasses:
E2AssociationOutline, E2DirectedAssociationOutline, E2InheritanceOutline, ENamedElementOutline, GDiagramParentOutline, GImportOutline, GSheetOutline, OrphanageOutline, ResourceOutline, UAttributeVariable2UExpressionVariableOutline, UBindingOutline, UClassVariable2UAttributeVariableOutline, UClassVariable2UClassVariableOutline, UDomain2UTypedModelOutline, UTransformation2UTransformationOutline, UTypedModel2EPackageOutline, UTypedModel2UTypedModelOutline

public abstract class NotifierOutline<M extends org.eclipse.emf.common.notify.Notifier>
extends AbstractOutline
implements IModelChangeListener, IOutlineElement

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.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
NotifierOutline(IRegimeCo0<M,?> regime, OutlineViewer viewer, M model)
           
 
Method Summary
 void activate()
           
 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 doRefreshVisuals()
           
 org.eclipse.gef.EditPart getEditPart()
           
 M getModel()
           
 IProblem getProblem()
           
 OutlineViewer getViewer()
           
 boolean handleDoubleClick()
          Handle a double click.
 void modelChanged(org.eclipse.emf.common.notify.Notification notification)
           
 void queueRefreshVisuals()
           
 void refresh()
          Deprecated. Override doRefresh or Invoke refresher.refresh
 
Methods inherited from class org.eclipse.gmt.umlx.editor.outline.AbstractOutline
canDelete, toString
 
Methods inherited from class org.eclipse.gef.editparts.AbstractTreeEditPart
getDragTracker, getWidget, setWidget
 
Methods inherited from class org.eclipse.gef.editparts.AbstractEditPart
addEditPartListener, addNotify, eraseSourceFeedback, eraseTargetFeedback, getAdapter, getChildren, getCommand, getEditPolicy, getParent, getRoot, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, removeEditPartListener, removeEditPolicy, removeNotify, 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.gmt.umlx.editor.refresh.INotifierElement
isActive, isSelectable
 
Methods inherited from interface org.eclipse.gmt.umlx.editor.refresh.IVisibleElement
canDelete
 
Methods inherited from interface org.eclipse.gef.EditPart
addEditPartListener, addNotify, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getParent, getRoot, getSelected, getTargetEditPart, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, removeEditPartListener, removeEditPolicy, removeNotify, setFocus, setModel, setParent, setSelected, showSourceFeedback, showTargetFeedback, understandsRequest
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

NotifierOutline

public NotifierOutline(IRegimeCo0<M,?> regime,
                       OutlineViewer 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.AbstractEditPart

computeProblemMessage

public IProblemMessage<?> computeProblemMessage()
Specified by:
computeProblemMessage in interface INotifierElement
Overrides:
computeProblemMessage in class AbstractOutline

deactivate

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

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

doRefreshVisuals

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

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

getViewer

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

handleDoubleClick

public boolean handleDoubleClick()
Description copied from interface: IOutlineElement
Handle a double click.

Specified by:
handleDoubleClick in interface IOutlineElement
Returns:
false if element does not handle double clicks

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.AbstractEditPart