|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
templates.diagram.actions.AbstractDiagramUndoableEdit
templates.diagram.actions.DiagramUndoableEdits.AssignFSAEdit
public static class DiagramUndoableEdits.AssignFSAEdit
Edit which does and undoes the assignment of an FSAModel to the
TemplateComponent of an Entity.
| Field Summary | |
|---|---|
protected TemplateDiagram |
diagram
The TemplateDiagram which contains the Entity to
whose TemplateComponent the new FSAModel should be
assigned. |
protected Entity |
entity
The Entity to whose TemplateComponent the new
FSAModel should be assigned. |
protected ides.api.model.fsa.FSAModel |
newModel
The new FSAModel assigned to the TemplateComponent of
the Entity. |
protected ides.api.model.fsa.FSAModel |
oldModel
The old FSAModel assigned to the TemplateComponent of
the Entity. |
| Fields inherited from class templates.diagram.actions.AbstractDiagramUndoableEdit |
|---|
usePluralDescription |
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Constructor Summary | |
|---|---|
DiagramUndoableEdits.AssignFSAEdit(TemplateDiagram diagram,
Entity entity,
ides.api.model.fsa.FSAModel newModel)
Constructs an edit with the given parameters. |
|
| Method Summary | |
|---|---|
boolean |
canRedo()
|
boolean |
canUndo()
|
java.lang.String |
getPresentationName()
Returns the name that should be displayed besides the Undo/Redo menu items, so the user knows which action will be undone/redone. |
void |
redo()
Has to be called once after the instantiation of the edit, in order to enact it. |
void |
undo()
|
| Methods inherited from class templates.diagram.actions.AbstractDiagramUndoableEdit |
|---|
setLastOfMultiple |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
addEdit, die, getRedoPresentationName, getUndoPresentationName, isSignificant, replaceEdit, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TemplateDiagram diagram
TemplateDiagram which contains the Entity to
whose TemplateComponent the new FSAModel should be
assigned.
protected Entity entity
Entity to whose TemplateComponent the new
FSAModel should be assigned.
protected ides.api.model.fsa.FSAModel oldModel
FSAModel assigned to the TemplateComponent of
the Entity.
protected ides.api.model.fsa.FSAModel newModel
FSAModel assigned to the TemplateComponent of
the Entity.
| Constructor Detail |
|---|
public DiagramUndoableEdits.AssignFSAEdit(TemplateDiagram diagram,
Entity entity,
ides.api.model.fsa.FSAModel newModel)
diagram - the TemplateDiagram which contains the
Entity to whose TemplateComponent the new
FSAModel should be assignedentity - the Entity to whose TemplateComponent the
new FSAModel should be assignednewModel - the new FSAModel to be assigned to the
TemplateComponent of the Entity| Method Detail |
|---|
public void redo()
throws javax.swing.undo.CannotRedoException
redo in interface javax.swing.undo.UndoableEditredo in class javax.swing.undo.AbstractUndoableEditjavax.swing.undo.CannotRedoException
public void undo()
throws javax.swing.undo.CannotUndoException
undo in interface javax.swing.undo.UndoableEditundo in class javax.swing.undo.AbstractUndoableEditjavax.swing.undo.CannotUndoExceptionpublic boolean canUndo()
canUndo in interface javax.swing.undo.UndoableEditcanUndo in class javax.swing.undo.AbstractUndoableEditpublic boolean canRedo()
canRedo in interface javax.swing.undo.UndoableEditcanRedo in class javax.swing.undo.AbstractUndoableEditpublic java.lang.String getPresentationName()
getPresentationName in interface javax.swing.undo.UndoableEditgetPresentationName in class javax.swing.undo.AbstractUndoableEdit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||