Modelers

org.topcased.modeler.commands
Class CreateDiagramCommand

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

public class CreateDiagramCommand
extends org.eclipse.gef.commands.Command

Creation : 17 may 2005


Constructor Summary
CreateDiagramCommand(Modeler ed, EObject obj, DiagramDescriptor diagram)
          Constructor
CreateDiagramCommand(Modeler ed, EObject obj, DiagramDescriptor diagram, boolean initialize)
          Constructor
 
Method Summary
 boolean canExecute()
           
 void execute()
           
 void redo()
           
 void undo()
           
 
Methods inherited from class org.eclipse.gef.commands.Command
canUndo, chain, dispose, getDebugLabel, getLabel, setDebugLabel, setLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateDiagramCommand

public CreateDiagramCommand(Modeler ed,
                            EObject obj,
                            DiagramDescriptor diagram)
Constructor

Parameters:
ed - the Modeler
obj - the model object associated with the diagram to create
diagram - the DiagramDescriptor

CreateDiagramCommand

public CreateDiagramCommand(Modeler ed,
                            EObject obj,
                            DiagramDescriptor diagram,
                            boolean initialize)
Constructor

Parameters:
ed - the Modeler
obj - the model object associated with the diagram to create
diagram - the DiagramDescriptor
initialize - if the children of the model objects must be imported graphically in the diagram
Method Detail

canExecute

public boolean canExecute()
Overrides:
canExecute in class org.eclipse.gef.commands.Command
See Also:
Command.canExecute()

execute

public void execute()
Overrides:
execute in class org.eclipse.gef.commands.Command
See Also:
Command.execute()

redo

public void redo()
Overrides:
redo in class org.eclipse.gef.commands.Command
See Also:
Command.redo()

undo

public void undo()
Overrides:
undo in class org.eclipse.gef.commands.Command
See Also:
Command.undo()

Modelers

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