Examples of addVariable()


Examples of org.eclipse.core.expressions.IEvaluationContext.addVariable()

  public static void openModel(EObject model)
  {
    IHandlerService handlerService  = (IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);

        IEvaluationContext context = handlerService.getCurrentState();
        context.addVariable(ActionHelper.ME_TO_OPEN_EVALUATIONCONTEXT_VARIABLE, model);

        try
        {
          context.addVariable(ActionHelper.MECONTEXT_EVALUATIONCONTEXT_VARIABLE, ECPWorkspaceManager.getInstance().getWorkSpace().getProject(model));
            handlerService.executeCommand(ActionHelper.MEEDITOR_OPENMODELELEMENT_COMMAND_ID, null);
View Full Code Here

Examples of org.eclipse.emf.codegen.jet.JETEmitter.addVariable()

          entries.addAll(dependencyClasspaths);
          return entries;
        }
      };
      emitter.setProjectName(projectName);
      emitter.addVariable("Google Data Plugin", Activator.PLUGIN_ID);
      generatedTemplateContent = emitter.generate(monitor,
          new Object[]{templateConfig, errorMessage});
    } catch(JETException e) {
      e.printStackTrace();
      throw DiagnosticException.toCoreException(e);
View Full Code Here

Examples of org.eclipse.php.internal.debug.core.zend.debugger.StackLayer.addVariable()

          .readString(in), CommunicationUtilities.readString(in), in
          .readInt(), CommunicationUtilities.readString(in),
          getTransferEncoding());
      int params = in.readInt();
      for (int j = 0; j < params; j++) {
        layer.addVariable(CommunicationUtilities.readEncodedString(in,
            getTransferEncoding()), CommunicationUtilities
            .readStringAsBytes(in));
      }
      stack.addLayer(layer);
    }
View Full Code Here

Examples of org.gpel.model.GpelVariablesContainer.addVariable()

  public void addreceive(GpelProcess process, WsdlDefinitions workflowWsdl, String operationName, String receiveMessage ) throws CloneNotSupportedException {

    GpelVariablesContainer variables = process.getVariables();
    XmlNamespace ns = variables.xml().getNamespace();
    GpelVariable var = new GpelVariable(ns, "newReceiveVar");
    variables.addVariable(var);
    var.setMessageTypeQName(new QName(workflowWsdl.getTargetNamespace(),
        receiveMessage));

    XmlElement topSeq = process.getActivity().xml();
    Iterator iterator = topSeq.children().iterator();
View Full Code Here

Examples of org.jamesii.core.experiments.optimization.OptimizationVariables.addVariable()

   * @return the optimisation variables
   */
  public OptimizationVariables getOptimizationVariables() {
    OptimizationVariables ovs = new OptimizationVariables();
    for (BaseVariable<?> element : factors.values()) {
      ovs.addVariable(new ExperimentVariable<BaseVariable<?>>(
          element.getName(), element));
    }
    return ovs;
  }

View Full Code Here

Examples of org.jamesii.core.experiments.variables.ExperimentVariables.addVariable()

  }

  public ExperimentVariables getExperimentVariables() {
    ExperimentVariables exp = new ExperimentVariables();
    for (ExperimentVariable<?> e : variables) {
      exp.addVariable(e);
    }
    return exp;
  }

  public void setExperimentVariables(ExperimentVariables vars) {
View Full Code Here

Examples of org.jboss.errai.codegen.Context.addVariable()

  @Override
  public String toJavaString() {
    final Context context = Context.create(declaringClass.getContext());

    for (final Parameter p : defParameters.getParameters()) {
      context.addVariable(Variable.create(p.getName(), p.getType()));
    }
    final StringBuilder buf = new StringBuilder(256);

    if (!annotations.isEmpty()) {
      for (final Annotation a : getAnnotations()) {
View Full Code Here

Examples of org.jboss.errai.codegen.framework.Context.addVariable()

                addCallable(new DeferredGenerateCallback() {
                  @Override
                  public String doGenerate(Context context) {
                    Context subContext = Context.create(context);
                    for (Parameter parm : parameters.getParameters()) {
                      subContext.addVariable(Variable.create(parm.getName(), parm.getType()));
                    }

                    StringBuilder buf = new StringBuilder(256);
                    String returnType = getClassReference(method.getReturnType(), context);
View Full Code Here

Examples of org.jboss.errai.ioc.rebind.ioc.codegen.Context.addVariable()

            addCallable(new DeferredGenerateCallback() {
              @Override
              public String doGenerate(Context context) {
                Context subContext = Context.create(context);
                for (Parameter parm : parameters.getParameters()) {
                  subContext.addVariable(Variable.create(parm.getName(), parm.getType()));
                }

                StringBuilder buf = new StringBuilder();
                buf.append("public ").append(getClassReference(method.getReturnType(), context))
                    .append(" ")
View Full Code Here

Examples of org.jbpm.pvm.internal.cmd.SetExecutionVariablesCmd.addVariable()

    return commandService.execute(new GetExecutionVariablesCmd(executionId, variableNames));
  }

  public void setVariable(String executionId, String name, Object value) {
    SetExecutionVariablesCmd cmd = new SetExecutionVariablesCmd(executionId);
    cmd.addVariable(name, value);
    commandService.execute(cmd);
  }

  public void setVariables(String executionId, Map<String, ?> variables) {
    SetExecutionVariablesCmd cmd = new SetExecutionVariablesCmd(executionId);
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.