Class CommandContainer
java.lang.Object
org.eclipse.graphiti.internal.command.CommandContainer
- All Implemented Interfaces:
IFeatureProviderHolder,IDescription,ICommand
The Class CommandContainer.
-
Constructor Summary
ConstructorsConstructorDescriptionCommandContainer(IFeatureProvider featureProvider) Instantiates a new command container. -
Method Summary
-
Constructor Details
-
CommandContainer
Instantiates a new command container.- Parameters:
featureProvider- the feature provider
-
-
Method Details
-
canExecute
public boolean canExecute()Description copied from interface:ICommandCan execute.- Specified by:
canExecutein interfaceICommand- Returns:
- true, if successful
-
execute
public boolean execute()Description copied from interface:ICommandExecute. -
canUndo
public boolean canUndo()Description copied from interface:ICommandCan undo. -
undo
public boolean undo()Description copied from interface:ICommandUndo. -
add
Adds the.- Parameters:
command- the command
-
getDescription
Description copied from interface:IDescriptionGets the description.- Specified by:
getDescriptionin interfaceIDescription- Returns:
- the description
-
containsCommands
public boolean containsCommands()Contains commands.- Returns:
- true, if successful
-
getFeatureProvider
Description copied from interface:IFeatureProviderHolderGets the feature provider.- Specified by:
getFeatureProviderin interfaceIFeatureProviderHolder- Returns:
- the feature provider
-
getCommands
Gets the commands.- Returns:
- the commands
-