|
Ecore | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.common.command.AbstractCommand
org.topcased.modeler.ecore.commands.EMFRecordingChangeCommand
public abstract class EMFRecordingChangeCommand
TODO Comment this class
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand |
|---|
AbstractCommand.NonDirtying |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.emf.common.command.AbstractCommand |
|---|
description, isExecutable, isPrepared, label |
| Constructor Summary | |
|---|---|
EMFRecordingChangeCommand(Resource resource)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
canUndo()
I can undo if I have recorded any changes previously. |
void |
dispose()
|
protected abstract void |
doExecute()
TODO comment this method |
void |
execute()
I run the runnable when I execute the first time. |
protected boolean |
prepare()
I am ready to execute if I haven't recorded any changes, yet. |
void |
redo()
Redoes by applying changes recorded in the last undo. |
void |
undo()
Undoes by applying recorded changes. |
| Methods inherited from class org.eclipse.emf.common.command.AbstractCommand |
|---|
canExecute, chain, getAffectedObjects, getDescription, getLabel, getResult, setDescription, setLabel, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EMFRecordingChangeCommand(Resource resource)
resource - | Method Detail |
|---|
public void execute()
protected boolean prepare()
prepare in class AbstractCommandprotected abstract void doExecute()
public boolean canUndo()
canUndo in interface CommandcanUndo in class AbstractCommandpublic void undo()
undo in interface Commandundo in class AbstractCommandpublic void redo()
public void dispose()
dispose in interface Commanddispose in class AbstractCommandCommand.dispose()
|
Ecore | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.