Modelers

org.topcased.modeler.commands
Class AbstractRestoreConnectionCommand

java.lang.Object
  extended by org.eclipse.gef.commands.Command
      extended by org.eclipse.gef.commands.CompoundCommand
          extended by org.topcased.modeler.commands.AbstractRestoreConnectionCommand

public abstract class AbstractRestoreConnectionCommand
extends org.eclipse.gef.commands.CompoundCommand


creation : 30 juin 2005


Constructor Summary
AbstractRestoreConnectionCommand(org.eclipse.gef.EditPart part)
          The constructor
 
Method Summary
protected  org.eclipse.gef.EditDomain getEditDomain()
           
protected  java.util.Map getEditPartRegistry()
           
protected  java.util.List<GraphEdge> getExistingEdges(GraphElement src, GraphElement tgt, java.lang.Class edgeClass)
           
protected  java.util.List getExistingEdges(GraphElement src, GraphElement tgt, java.lang.String type)
           
protected  GraphElement getGraphElement()
           
protected  Modeler getModeler()
           
protected  org.eclipse.gef.EditPart getRestoredPart()
           
protected abstract  void initializeCommands()
          Subclasses should implements this to add the restoreCommands that should be added to the global CompoundCommand
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.
 
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
 

Constructor Detail

AbstractRestoreConnectionCommand

public AbstractRestoreConnectionCommand(org.eclipse.gef.EditPart part)
The constructor

Parameters:
part - the editPart that is restored
Method Detail

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 object
listElt - 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


Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.