Package eu.admire.dispel.variables

Examples of eu.admire.dispel.variables.LocalVariable


  /**
   * @generated
   */
  public static List<DispelLinkDescriptor> getLocalVariable_3001OutgoingLinks(
      View view) {
    LocalVariable modelElement = (LocalVariable) view.getElement();
    LinkedList<DispelLinkDescriptor> result = new LinkedList<DispelLinkDescriptor>();
    result.addAll(getOutgoingTypeModelFacetLinks_ConnectionExpression_4001(modelElement));
    return result;
  }
View Full Code Here


      if (container instanceof ProcessingElementInstance) {

        ProcessingElementInstance pei = (ProcessingElementInstance) container;

        LocalVariable inVar = (LocalVariable) getSource();
        pck = inVar.getContainingPackage();

        Collection<LocalVariable> variables = DispelEObjectUtil
            .getObjectsByType(pck.eAllContents(),
                VariablesPackage.eINSTANCE.getLocalVariable());
View Full Code Here

  /**
   * @generated
   */
  public void init_LocalVariableStatement_2001(LocalVariableStatement instance) {
    try {
      LocalVariable newInstance_0_0 = VariablesFactory.eINSTANCE
          .createLocalVariable();
      instance.setVariable(newInstance_0_0);
      newInstance_0_0.setName("variable_name");
      Any newInstance_0_0_1_0 = TypesFactory.eINSTANCE.createAny();
      newInstance_0_0.setTypeReference(newInstance_0_0_1_0);
      newInstance_0_0_1_0.getComments().add("");

    } catch (RuntimeException e) {
      DispelDiagramEditorPlugin.getInstance().logError(
          "Element initialization failed", e); //$NON-NLS-1$           
View Full Code Here

    EObject eObj = editPart.resolveSemanticElement();

    if (eObj instanceof LocalVariable) {

      LocalVariable lv = (LocalVariable) editPart
          .resolveSemanticElement();

      PrimitiveTypeReference ptr = ReferencesFactory.eINSTANCE
          .createPrimitiveTypeReference();
View Full Code Here

      action.setChecked(false);

      if (eObj instanceof LocalVariable) {

        LocalVariable lv = (LocalVariable) editPart
            .resolveSemanticElement();

        if (lv.getTypeReference() instanceof PrimitiveTypeReference) {

          PrimitiveTypeReference ptr = (PrimitiveTypeReference) lv
              .getTypeReference();

          if (action.getId().contains("AnyTypeID")
              && ptr.getPrimitiveType() instanceof eu.admire.dispel.types.Any)
            action.setChecked(true);
View Full Code Here

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

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

View Full Code Here

TOP

Related Classes of eu.admire.dispel.variables.LocalVariable

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.