public class DefaultAddLayerCommand extends AbstractCommand
Constructor and Description |
---|
DefaultAddLayerCommand(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 added to the model.
|
IGanttChartModel |
getModel()
Returns the model to which the layer will be added
|
void |
undoCommand(IProgressMonitor monitor)
Undos the command.
|
getName, isRedoable, isRelevant, isUndoable, redoCommand, setName
public DefaultAddLayerCommand(ILayer layer, DefaultGanttChartModel model)
layer
- the layer to addmodel
- the model to which the layer will be addedpublic 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–2020 Dirk Lemmermann Software & Consulting. All rights reserved.