Examples of LocalVariableStatement


Examples of eu.admire.dispel.statements.LocalVariableStatement

  }

  public static LocalVariableStatement getParentLocalVariableStatement(
      EObject base) {
   
    LocalVariableStatement ret = null;
    if (base != null) {
      EObject e = base;
      do {
        e = e.eContainer();
        if (e instanceof LocalVariableStatement) {
View Full Code Here

Examples of eu.admire.dispel.statements.LocalVariableStatement

    ref1.setTarget(peDef);
    ref2.setTarget(peDef);

    // VARIABLE:
    LocalVariableStatement statement = StatementsFactory.eINSTANCE
        .createLocalVariableStatement();

    LocalVariable variable = VariablesFactory.eINSTANCE
        .createLocalVariable();

    statement.setVariable(variable);

    variable.setTypeReference(ref1);
    variable.setName("new_variable");
    variable.setInitialValue(ex1);
View Full Code Here

Examples of eu.admire.dispel.statements.LocalVariableStatement

  /**
   * @generated
   */
  public boolean canExecute() {
    LocalVariableStatement container = (LocalVariableStatement) getElementToEdit();
    if (container.getVariable() != null) {
      return false;
    }
    return true;

  }
View Full Code Here

Examples of eu.admire.dispel.statements.LocalVariableStatement

  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    LocalVariable newElement = VariablesFactory.eINSTANCE
        .createLocalVariable();

    LocalVariableStatement owner = (LocalVariableStatement) getElementToEdit();
    owner.setVariable(newElement);

    doConfigure(newElement, monitor, info);

    ((CreateElementRequest) getRequest()).setNewElement(newElement);
    return CommandResult.newOKCommandResult(newElement);
View Full Code Here

Examples of eu.admire.dispel.statements.LocalVariableStatement

  /**
   * @generated
   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    LocalVariableStatement newElement = StatementsFactory.eINSTANCE
        .createLocalVariableStatement();

    StatementListContainer owner = (StatementListContainer) getElementToEdit();
    owner.getStatements().add(newElement);

View Full Code Here

Examples of eu.admire.dispel.statements.LocalVariableStatement

    ref1.setTarget(peDef);
    ref2.setTarget(peDef);

    // VARIABLE:
    LocalVariableStatement statement = StatementsFactory.eINSTANCE
        .createLocalVariableStatement();

    LocalVariable variable = VariablesFactory.eINSTANCE
        .createLocalVariable();

    statement.setVariable(variable);

    variable.setTypeReference(ref1);
    variable.setName("new_variable");
    variable.setInitialValue(ex1);
View Full Code Here

Examples of eu.admire.dispel.statements.LocalVariableStatement

    }
    View containerView = (View) view.eContainer();
    if (!containerView.isSetElement()) {
      return Collections.emptyList();
    }
    LocalVariableStatement modelElement = (LocalVariableStatement) containerView
        .getElement();
    LinkedList<DispelNodeDescriptor> result = new LinkedList<DispelNodeDescriptor>();
    {
      LocalVariable childElement = modelElement.getVariable();
      int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == LocalVariableEditPart.VISUAL_ID) {
        result.add(new DispelNodeDescriptor(childElement, visualID));
      }
View Full Code Here

Examples of eu.admire.dispel.statements.LocalVariableStatement

  /**
   * @generated
   */
  public boolean canExecute() {
    LocalVariableStatement container = (LocalVariableStatement) getElementToEdit();
    if (container.getVariable() != null) {
      return false;
    }
    return true;

  }
View Full Code Here

Examples of eu.admire.dispel.statements.LocalVariableStatement

  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    LocalVariable newElement = VariablesFactory.eINSTANCE
        .createLocalVariable();

    LocalVariableStatement owner = (LocalVariableStatement) getElementToEdit();
    owner.setVariable(newElement);

    doConfigure(newElement, monitor, info);

    ((CreateElementRequest) getRequest()).setNewElement(newElement);
    return CommandResult.newOKCommandResult(newElement);
View Full Code Here

Examples of eu.admire.dispel.statements.LocalVariableStatement

  /**
   * @generated
   */
  protected CommandResult doExecuteWithResult(IProgressMonitor monitor,
      IAdaptable info) throws ExecutionException {
    LocalVariableStatement newElement = StatementsFactory.eINSTANCE
        .createLocalVariableStatement();

    StatementListContainer owner = (StatementListContainer) getElementToEdit();
    owner.getStatements().add(newElement);

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.