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()
ICommand
canExecute
in interface ICommand
public boolean execute()
ICommand
public boolean canUndo()
ICommand
public boolean undo()
ICommand
public void add(ICommand command)
command
- the commandpublic java.lang.String getDescription()
IDescription
getDescription
in interface IDescription
public boolean containsCommands()
public IFeatureProvider getFeatureProvider()
IFeatureProviderHolder
getFeatureProvider
in interface IFeatureProviderHolder
public ICommand[] getCommands()