Class CreateModelObjectCommand
- java.lang.Object
-
- org.eclipse.gef.commands.Command
-
- org.eclipse.graphiti.ui.internal.command.AbstractCommand
-
- org.eclipse.graphiti.ui.internal.command.GFCommand
-
- org.eclipse.graphiti.ui.internal.command.CreateModelObjectCommand
-
- All Implemented Interfaces:
IConfigurationProviderHolder
public class CreateModelObjectCommand extends GFCommand
-
-
Constructor Summary
Constructors Constructor Description CreateModelObjectCommand(IConfigurationProvider configurationProvider, ICreateFeature feature, ICreateContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanExecute()booleancanUndo()voidexecute()voidundo()-
Methods inherited from class org.eclipse.graphiti.ui.internal.command.GFCommand
getContext, getFeature, setContext, setFeature
-
Methods inherited from class org.eclipse.graphiti.ui.internal.command.AbstractCommand
getConfigurationProvider, getFeatureProvider, getTransactionalEditingDomain
-
-
-
-
Constructor Detail
-
CreateModelObjectCommand
public CreateModelObjectCommand(IConfigurationProvider configurationProvider, ICreateFeature feature, ICreateContext context)
-
-
Method Detail
-
canExecute
public boolean canExecute()
- Overrides:
canExecutein classorg.eclipse.gef.commands.Command
-
execute
public void execute()
- Overrides:
executein classorg.eclipse.gef.commands.Command
-
canUndo
public boolean canUndo()
- Overrides:
canUndoin classorg.eclipse.gef.commands.Command
-
undo
public void undo()
- Overrides:
undoin classorg.eclipse.gef.commands.Command
-
-