public class DefaultDeleteRelationshipCommand extends AbstractCommand
Constructor and Description |
---|
DefaultDeleteRelationshipCommand(IRelationship relationship,
DefaultGanttChartModel model)
Constructs a new command for deleting a relationship from a Gantt chart
model.
|
Modifier and Type | Method and Description |
---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command.
|
DefaultGanttChartModel |
getModel()
Returns the model from which the relationship was removed.
|
IRelationship |
getRelationship()
Returns the relationship that was deleted from the model.
|
void |
undoCommand(IProgressMonitor monitor)
Undos the command.
|
getName, isRedoable, isRelevant, isUndoable, redoCommand, setName
public DefaultDeleteRelationshipCommand(IRelationship relationship, DefaultGanttChartModel model)
relationship
- model
- public 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 IRelationship getRelationship()
public DefaultGanttChartModel getModel()
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.