public class AddModelObjectCommand extends AbstractCommand
Constructor and Description |
---|
AddModelObjectCommand(IConfigurationProvider configurationProvider,
ContainerShape parent,
ISelection sel,
org.eclipse.draw2d.geometry.Rectangle rectangle) |
AddModelObjectCommand(IConfigurationProvider configurationProvider,
ContainerShape parent,
ISelection sel,
org.eclipse.draw2d.geometry.Rectangle rectangle,
Connection connection) |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute() |
boolean |
canUndo() |
void |
execute() |
IFeatureAndContext[] |
getFeaturesAndContexts() |
getConfigurationProvider
public AddModelObjectCommand(IConfigurationProvider configurationProvider, ContainerShape parent, ISelection sel, org.eclipse.draw2d.geometry.Rectangle rectangle)
public AddModelObjectCommand(IConfigurationProvider configurationProvider, ContainerShape parent, ISelection sel, org.eclipse.draw2d.geometry.Rectangle rectangle, Connection connection)
public boolean canExecute()
canExecute
in class org.eclipse.gef.commands.Command
public void execute()
execute
in class org.eclipse.gef.commands.Command
public boolean canUndo()
canUndo
in class org.eclipse.gef.commands.Command
public IFeatureAndContext[] getFeaturesAndContexts()