public class DefaultRemoveLayerCommand extends AbstractCommand
Constructor and Description |
---|
DefaultRemoveLayerCommand(ILayer layer,
DefaultGanttChartModel model)
Constructs a new command.
|
Modifier and Type | Method and Description |
---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command.
|
ILayer |
getLayer()
Returns the layer that will be removed from the model.
|
IGanttChartModel |
getModel()
Returns the model from which the layer will be removed
|
void |
undoCommand(IProgressMonitor monitor)
Undos the command.
|
getName, isRedoable, isRelevant, isUndoable, redoCommand, setName
public DefaultRemoveLayerCommand(ILayer layer, DefaultGanttChartModel model)
layer
- the layer to removemodel
- the model from which to remove the layerpublic void executeCommand(IProgressMonitor monitor) throws CommandException
ICommand
monitor
- a progress monitorCommandException
- if anything during the execution of the command has gone
wrongpublic void undoCommand(IProgressMonitor monitor) throws CommandException
ICommand
monitor
- a progress monitorCommandException
- if anything during the execution of the command has gone
wrongpublic ILayer getLayer()
public IGanttChartModel getModel()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.