public abstract class ChangeParameterTypeCommand extends AbstractCommand
Modifier and Type | Field and Description |
---|---|
SimplifiedParameterType |
_newType |
Object |
_oldParameter |
NodePath |
_paramPath |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doChangeParameter(Document document,
Parameter parameter)
Changes the parameter.
|
protected abstract void |
doRestoreParameter(Parameter param,
Parameter oldParam)
Called to resotre the given parameter back to the old settings (provided in oldParameter).
|
void |
execute(Document document)
Called to execute the command against the given document.
|
void |
undo(Document document)
Called to undo the command (restore the document to a previous state).
|
isNullOrUndefined, type
public NodePath _paramPath
public SimplifiedParameterType _newType
public Object _oldParameter
public void execute(Document document)
ICommand
public void undo(Document document)
ICommand
protected abstract void doChangeParameter(Document document, Parameter parameter)
document
- parameter
- Copyright © 2020 Red Hat. All rights reserved.