Class GefEmfCommand
java.lang.Object
org.eclipse.gef.commands.Command
com._1c.g5.v8.dt.common.gef.commands.GefEmfCommand
- Direct Known Subclasses:
SelectEditPartCommand
public class GefEmfCommand
extends org.eclipse.gef.commands.Command
GEF command which wraps EMF command.
-
Constructor Summary
ConstructorsConstructorDescriptionGefEmfCommand
(org.eclipse.emf.edit.domain.EditingDomain editingDomain, org.eclipse.emf.common.command.Command emfCommand) Instantiates a new GEF to wrapper EMF command. -
Method Summary
Methods inherited from class org.eclipse.gef.commands.Command
canRedo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel
-
Constructor Details
-
GefEmfCommand
public GefEmfCommand(org.eclipse.emf.edit.domain.EditingDomain editingDomain, org.eclipse.emf.common.command.Command emfCommand) Instantiates a new GEF to wrapper EMF command.- Parameters:
editingDomain
- the editing domain, may benull
if no domain available.emfCommand
- the EMF command.
-
-
Method Details
-
canExecute
public boolean canExecute()- Overrides:
canExecute
in classorg.eclipse.gef.commands.Command
-
canUndo
public boolean canUndo()- Overrides:
canUndo
in classorg.eclipse.gef.commands.Command
-
getEmfCommand
public org.eclipse.emf.common.command.Command getEmfCommand() -
execute
public void execute()- Overrides:
execute
in classorg.eclipse.gef.commands.Command
-
undo
public void undo()- Overrides:
undo
in classorg.eclipse.gef.commands.Command
-