Examples of BaseWriteableCamelBooleanVariable


Examples of org.fusesource.ide.launcher.debug.model.variables.BaseWriteableCamelBooleanVariable

   */
  @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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.