Package org.eclipse.emf.ecore

Examples of org.eclipse.emf.ecore.EObject.eContainer()


   * @customized
   */
  public Activity getActivity() {
    EObject container = eContainer();
    if (!(container instanceof Sources)) return null;
    container = container.eContainer();
    if (!(container instanceof Activity)) return null;
    return (Activity)container;
  }

  /**
 
View Full Code Here


              if (candidate.getName().equals(linkName))
                return candidate;
            }
          }
        }
        container = container.eContainer();
      }
    }
    return null;   
  }
}
View Full Code Here

        isValidLocation = true;
      } else if (container instanceof Scope || container instanceof Process) {
        enclosingScopeOrProcess = container;
        break;
      }
      container = container.eContainer();
    }
    if (enclosingScopeOrProcess == null) {
      // Error, silently fail
      return;
    }
View Full Code Here

              }
            }
          }
        }
      }
      container = container.eContainer()
   
   
    // System.out.println("Variable: " + variableName + " - not resolved");
   
    return null
View Full Code Here

   * @customized
   */
  public Activity getActivity() {
    EObject container = eContainer();
    if (!(container instanceof Targets)) return null;
    container = container.eContainer();
    if (!(container instanceof Activity)) return null;
    return (Activity)container;
  }

  /**
 
View Full Code Here

      }
      else
      {
        EObject object = objects.popEObject();
        if (mixedTargets.peek() != null &&
              (object.eContainer() != null ||
                 suppressDocumentRoot ||
                 recordUnknownFeature &&
                   (eObjectToExtensionMap.containsValue(object) || ((InternalEObject)object).eDirectResource() != null)))
        {
          handleMixedText();
View Full Code Here

      if (parent != null) {
        return parent;
      }
      if (element instanceof EObject) {
        EObject eObject = (EObject) element;
        if (eObject.eContainer() == null
            && eObject.eResource().getURI().isFile()) {
          String path = eObject.eResource().getURI().path();
          return ResourcesPlugin.getWorkspace().getRoot()
              .getFileForLocation(new Path(path));
        }
View Full Code Here

        se = elements.get(source);
        source = source.eContainer();
      } while (se == null && source.eContainer() != null);
      do {
        te = elements.get(target);
        target = target.eContainer();
      } while (te == null && target.eContainer() != null);
    }

    ModelUtil.addID(bpmnElement);
   
View Full Code Here

        source = source.eContainer();
      } while (se == null && source.eContainer() != null);
      do {
        te = elements.get(target);
        target = target.eContainer();
      } while (te == null && target.eContainer() != null);
    }

    ModelUtil.addID(bpmnElement);
   
    if (source != null && target != null) {
View Full Code Here

    text.append("\n");

    // Build the element's path
    StringBuilder path = new StringBuilder();
    EObject node = object;
    while (node.eContainer() != null) {
      path.insert(0, getLabel(node, names));
      node = node.eContainer();
      if (node.eContainer() != null) {
        path.insert(0, " / ");
      }
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.