Class GefEmfCommand


  • public class GefEmfCommand
    extends org.eclipse.gef.commands.Command
    GEF command which wraps EMF command.
    • 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 be null if no domain available.
        emfCommand - the EMF command.
    • Method Detail

      • canExecute

        public boolean canExecute()
        Overrides:
        canExecute in class org.eclipse.gef.commands.Command
      • canUndo

        public boolean canUndo()
        Overrides:
        canUndo in class org.eclipse.gef.commands.Command
      • getEmfCommand

        public org.eclipse.emf.common.command.Command getEmfCommand()
      • execute

        public void execute()
        Overrides:
        execute in class org.eclipse.gef.commands.Command
      • undo

        public void undo()
        Overrides:
        undo in class org.eclipse.gef.commands.Command