Class AddModelObjectCommand

java.lang.Object
org.eclipse.gef.commands.Command
org.eclipse.graphiti.ui.internal.command.AbstractCommand
org.eclipse.graphiti.ui.internal.command.AddModelObjectCommand
All Implemented Interfaces:
IConfigurationProviderHolder

public class AddModelObjectCommand extends AbstractCommand
  • Constructor Details

    • AddModelObjectCommand

      public AddModelObjectCommand(IConfigurationProvider configurationProvider, ContainerShape parent, org.eclipse.jface.viewers.ISelection sel, org.eclipse.draw2d.geometry.Rectangle rectangle)
    • AddModelObjectCommand

      public AddModelObjectCommand(IConfigurationProvider configurationProvider, ContainerShape parent, org.eclipse.jface.viewers.ISelection sel, org.eclipse.draw2d.geometry.Rectangle rectangle, Connection connection)
  • Method Details

    • canExecute

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

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

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

      public IFeatureAndContext[] getFeaturesAndContexts()