*/
@Override
public boolean editVariable(IVariable variable, Shell shell) {
try {
if (variable instanceof BaseWriteableCamelBooleanVariable) {
BaseWriteableCamelBooleanVariable var = (BaseWriteableCamelBooleanVariable) variable;
IValue value = variable.getValue();
BooleanVariableEditor editor = new BooleanVariableEditor(shell, "Edit value...", "Please select the new value...", Boolean.parseBoolean(value.getValueString()));
if (editor.open() == Window.OK && Boolean.parseBoolean(value.getValueString()) != editor.getValue()) {
var.setValue(Boolean.toString(editor.getValue()));
}
return true;
}
} catch (DebugException ex) {
Activator.getLogger().error(ex);