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

    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

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    void
     
    org.eclipse.emf.common.command.Command
     
    void
     

    Methods inherited from class org.eclipse.gef.commands.Command

    canRedo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 be null if no domain available.
      emfCommand - the EMF command.
  • Method Details

    • 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