|
||||||||||
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.eclipse.emf.ecoretools.tabbedproperties.EMFRecordingChangeCommand
public abstract class EMFRecordingChangeCommand
An automatic command
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand |
---|
org.eclipse.emf.common.command.AbstractCommand.NonDirtying |
Field Summary |
---|
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand |
---|
description, isExecutable, isPrepared, label |
Constructor Summary | |
---|---|
EMFRecordingChangeCommand(org.eclipse.emf.ecore.resource.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(org.eclipse.emf.ecore.resource.Resource resource)
resource
- Method Detail |
---|
public void execute()
protected boolean prepare()
prepare
in class org.eclipse.emf.common.command.AbstractCommand
protected abstract void doExecute()
public boolean canUndo()
canUndo
in interface org.eclipse.emf.common.command.Command
canUndo
in class org.eclipse.emf.common.command.AbstractCommand
public void undo()
undo
in interface org.eclipse.emf.common.command.Command
undo
in class org.eclipse.emf.common.command.AbstractCommand
public void redo()
public void dispose()
dispose
in interface org.eclipse.emf.common.command.Command
dispose
in class org.eclipse.emf.common.command.AbstractCommand
AbstractCommand.dispose()
|
Copyright 2007 Anyware Technologies. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |