Package org.fusesource.ide.launcher.debug.model.variables

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


    val = new BaseCamelValue(this.fTarget, this.message.getBody(), var.getReferenceType());
    var.setValue(val);
    this.fVariables.add(var);
   
    // HEADERS
    var = new CamelHeadersVariable(this.debugTarget, VARIABLE_NAME_MESSAGEHEADERS, ArrayList.class);
    val = new CamelHeadersValue(this.fTarget, this.message.getHeaders(), var.getReferenceType(), (CamelHeadersVariable)var);
    var.setValue(val);
    this.fVariables.add(var);
   
    // MESSAGE ID
View Full Code Here


  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    ISelection sel = HandlerUtil.getCurrentSelection(event);
    Object o = Selections.getFirstSelection(sel);
    if (o instanceof CamelHeadersVariable) {
      CamelHeadersVariable var = (CamelHeadersVariable)o;
      NewMessageHeaderDialog dlg = new NewMessageHeaderDialog(HandlerUtil.getActiveShell(event));
      if (Window.OK == dlg.open()) {
        String key = dlg.getHeaderKey();
        String val = dlg.getHeaderValue();
        var.addHeader(key, val);
      }     
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.fusesource.ide.launcher.debug.model.variables.CamelHeadersVariable

Copyright © 2018 www.massapicom. 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.