kaapo.projectmanager.command
Class ChangeVisibleDiagramEdit

java.lang.Object
  extended by kaapo.projectmanager.command.AbstractEdit
      extended by kaapo.projectmanager.command.ChangeVisibleDiagramEdit
All Implemented Interfaces:
Edit

public class ChangeVisibleDiagramEdit
extends AbstractEdit

This UndoableEdit changes the currently visible Diagram in ProjectManager to another one.

Author:
hprajani

Field Summary
 
Fields inherited from class kaapo.projectmanager.command.AbstractEdit
pm
 
Constructor Summary
ChangeVisibleDiagramEdit(DiagramWrapper diagram)
          Constructs a new ChangeVisibleDiagramEdit
 
Method Summary
 void execute(ProjectManager pm)
          Execution of this edit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeVisibleDiagramEdit

public ChangeVisibleDiagramEdit(DiagramWrapper diagram)
Constructs a new ChangeVisibleDiagramEdit

Parameters:
diagram - the new Diagram
Method Detail

execute

public void execute(ProjectManager pm)
Execution of this edit.

Parameters:
pm - the relevant ProjectManager