public class CommandContainer extends java.lang.Object implements ICommand
| Constructor and Description |
|---|
CommandContainer(IFeatureProvider featureProvider)
Instantiates a new command container.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ICommand command)
Adds the.
|
boolean |
canExecute()
Can execute.
|
boolean |
canUndo()
Can undo.
|
boolean |
containsCommands()
Contains commands.
|
boolean |
execute()
Execute.
|
ICommand[] |
getCommands()
Gets the commands.
|
java.lang.String |
getDescription()
Gets the description.
|
IFeatureProvider |
getFeatureProvider()
Gets the feature provider.
|
boolean |
undo()
Undo.
|
public CommandContainer(IFeatureProvider featureProvider)
featureProvider - the feature providerpublic boolean canExecute()
ICommandcanExecute in interface ICommandpublic boolean execute()
ICommandpublic boolean canUndo()
ICommandpublic boolean undo()
ICommandpublic void add(ICommand command)
command - the commandpublic java.lang.String getDescription()
IDescriptiongetDescription in interface IDescriptionpublic boolean containsCommands()
public IFeatureProvider getFeatureProvider()
IFeatureProviderHoldergetFeatureProvider in interface IFeatureProviderHolderpublic ICommand[] getCommands()