Class CommandContainer
java.lang.Object
org.eclipse.graphiti.internal.command.CommandContainer
- All Implemented Interfaces:
IFeatureProviderHolder
,IDescription
,ICommand
The Class CommandContainer.
-
Constructor Summary
ConstructorDescriptionCommandContainer
(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:ICommand
Can execute.- Specified by:
canExecute
in interfaceICommand
- Returns:
- true, if successful
-
execute
public boolean execute()Description copied from interface:ICommand
Execute. -
canUndo
public boolean canUndo()Description copied from interface:ICommand
Can undo. -
undo
public boolean undo()Description copied from interface:ICommand
Undo. -
add
Adds the.- Parameters:
command
- the command
-
getDescription
Description copied from interface:IDescription
Gets the description.- Specified by:
getDescription
in interfaceIDescription
- Returns:
- the description
-
containsCommands
public boolean containsCommands()Contains commands.- Returns:
- true, if successful
-
getFeatureProvider
Description copied from interface:IFeatureProviderHolder
Gets the feature provider.- Specified by:
getFeatureProvider
in interfaceIFeatureProviderHolder
- Returns:
- the feature provider
-
getCommands
Gets the commands.- Returns:
- the commands
-