org.topcased.modeler.commands
Class AbstractRestoreConnectionCommand
java.lang.Object
org.eclipse.gef.commands.Command
org.eclipse.gef.commands.CompoundCommand
org.topcased.modeler.commands.AbstractRestoreConnectionCommand
public abstract class AbstractRestoreConnectionCommand
- extends org.eclipse.gef.commands.CompoundCommand
creation : 30 juin 2005
Methods inherited from class org.eclipse.gef.commands.CompoundCommand |
add, canExecute, canUndo, dispose, execute, getChildren, getCommands, getLabel, isEmpty, redo, size, undo, unwrap |
Methods inherited from class org.eclipse.gef.commands.Command |
chain, getDebugLabel, setDebugLabel, setLabel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractRestoreConnectionCommand
public AbstractRestoreConnectionCommand(org.eclipse.gef.EditPart part)
- The constructor
- Parameters:
part
- the editPart that is restored
getRestoredPart
protected org.eclipse.gef.EditPart getRestoredPart()
getGraphElement
protected GraphElement getGraphElement()
getEditPartRegistry
protected java.util.Map getEditPartRegistry()
getEditDomain
protected org.eclipse.gef.EditDomain getEditDomain()
getModeler
protected Modeler getModeler()
getExistingEdges
protected java.util.List getExistingEdges(GraphElement src,
GraphElement tgt,
java.lang.String type)
getExistingEdges
protected java.util.List<GraphEdge> getExistingEdges(GraphElement src,
GraphElement tgt,
java.lang.Class edgeClass)
isAlreadyPresent
protected boolean isAlreadyPresent(java.util.List listElt,
EObject eObject)
- Return true if the list of GraphElement contains at least one GraphElement whose the associated model object is
equal to the one passed.
- Parameters:
eObject
- a model objectlistElt
- a List that contains GraphElement objects
- Returns:
- boolean
initializeCommands
protected abstract void initializeCommands()
- Subclasses should implements this to add the restoreCommands that should be added to the global CompoundCommand
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.