public class DefaultChangeTimeZoneCommand extends AbstractCommand
Constructor and Description |
---|
DefaultChangeTimeZoneCommand(IDatelineModel model,
TimeZone timeZone)
Constructs a new command that will change the time zone on the given
timeline.
|
Modifier and Type | Method and Description |
---|---|
void |
executeCommand(IProgressMonitor monitor)
Executes the command.
|
void |
undoCommand(IProgressMonitor monitor)
Undos the command.
|
getName, isRedoable, isRelevant, isUndoable, redoCommand, setName
public DefaultChangeTimeZoneCommand(IDatelineModel model, TimeZone timeZone)
model
- the target dateline modeltimeZone
- the new time zonepublic 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
wrongCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.