Class GefEmfCommand
- java.lang.Object
-
- org.eclipse.gef.commands.Command
-
- com._1c.g5.v8.dt.common.gef.commands.GefEmfCommand
-
public class GefEmfCommand extends org.eclipse.gef.commands.Command
GEF command which wraps EMF command.
-
-
Constructor Summary
Constructors Constructor Description GefEmfCommand(org.eclipse.emf.edit.domain.EditingDomain editingDomain, org.eclipse.emf.common.command.Command emfCommand)
Instantiates a new GEF to wrapper EMF command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canExecute()
boolean
canUndo()
void
execute()
org.eclipse.emf.common.command.Command
getEmfCommand()
void
undo()
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-