Examples of eContainer()


Examples of fd2.OptionalRelation.eContainer()

      OptionalRelation link = (OptionalRelation) setting.getEObject();
      if (OptionalRelationEditPart.VISUAL_ID != Fd2VisualIDRegistry
          .getLinkWithClassVisualID(link)) {
        continue;
      }
      if (false == link.eContainer() instanceof BaseFeatureNode) {
        continue;
      }
      BaseFeatureNode container = (BaseFeatureNode) link.eContainer();
      result.add(new Fd2LinkDescriptor(container, target, link,
          Fd2ElementTypes.OptionalRelation_4009,
View Full Code Here

Examples of fd2.RequireRelation.eContainer()

      RequireRelation link = (RequireRelation) setting.getEObject();
      if (RequireRelationEditPart.VISUAL_ID != Fd2VisualIDRegistry
          .getLinkWithClassVisualID(link)) {
        continue;
      }
      if (false == link.eContainer() instanceof BaseFeatureNode) {
        continue;
      }
      BaseFeatureNode container = (BaseFeatureNode) link.eContainer();
      result.add(new Fd2LinkDescriptor(container, target, link,
          Fd2ElementTypes.RequireRelation_4006,
View Full Code Here

Examples of fr.tm.elibel.smartqvt.qvt.emof.Type.eContainer()

        pattern = elem.getName();
        name = elem.getName();
        if (elem instanceof Type) {
          Type t = (Type) elem;
          image_id = UiPlugin.getImage(UiPlugin.IMAGE_TYPE);
          if ((t.eContainer() != null)
              && (t.eContainer() instanceof NamedElement))
            description = ((NamedElement) t.eContainer()).getName();
        }
        if (elem instanceof TypedElement) {
          TypedElement typedElem = (TypedElement) elem;
View Full Code Here

Examples of my.home.dsl.deepClone.FieldClonerType.eContainer()

          rootCloner.setJavaType(reflectionUtils
            .createDefensiveCopyOfJvmTypeReference(JVM_UNKNOWN_TYPE));         
        }
      } else if (child instanceof FieldClonerType) {
        FieldClonerType fieldCloner = (FieldClonerType) child;
        JvmTypeReference parentType = ((ContainerType) fieldCloner
            .eContainer()).getJavaType();
        JvmField jvmField = reflectionUtils.getField(
            parentType.getType(), fieldCloner.getFieldName());
        if (jvmField != null) {
          fieldCloner.setJavaType(reflectionUtils
View Full Code Here

Examples of org.eclipse.bpel.common.extension.model.Extension.eContainer()

        // and extensionObjects are null and the Extension is cointained by the ExtensionMap then
        // remove it form the list. 
        Extension extension = (Extension) notification.getNotifier();
       
        if(extension.getExtendedObject() == null && extension.getExtensionObject() == null &&
             extension.eContainer() != null){

          ExtensionMap extensionSet = (ExtensionMap)extension.eContainer();
         
          if(extensionSet != null && extensionSet.getExtensions().contains(extension))
            extensionSet.getExtensions().remove(extension);
View Full Code Here

Examples of org.eclipse.bpmn2.Lane.eContainer()

  @Override
  public int compare(Shape o1, Shape o2) {
    Lane l1 = BusinessObjectUtil.getFirstElementOfType(o1, Lane.class);
    Lane l2 = BusinessObjectUtil.getFirstElementOfType(o2, Lane.class);

    if (l1 != null && l2 != null && l1.eContainer().equals(l2.eContainer())) {
      int y1 = o1.getGraphicsAlgorithm().getY();
      int y2 = o2.getGraphicsAlgorithm().getY();
      return new Integer(y1).compareTo(y2);
    }
    return 0;
View Full Code Here

Examples of org.eclipse.bpmn2.LaneSet.eContainer()

  private void modifyModelStructure(Lane targetLane, Lane lane) {
    LaneSet laneSet = (LaneSet) lane.eContainer();
    laneSet.getLanes().remove(lane);

    if (laneSet.getLanes().size() == 0) {
      EObject container = laneSet.eContainer();
      if (container instanceof Process) {
        Process p = (Process) container;
        p.getLaneSets().remove(laneSet);
      }
    }
View Full Code Here

Examples of org.eclipse.bpmn2.Process.eContainer()

                     // find the special process for root level tasks:
                        rootLevelProcess.getFlowElements().add((DataObject) child);
                        ItemDefinition def = ((DataObject) child).getItemSubjectRef();
                        if (def != null) {
                            if (def.eResource() == null) {
                                ((Definitions) rootLevelProcess.eContainer()).getRootElements().add(0, def);
                            }
                            Import imported = def.getImport();
                            if (imported != null && imported.eResource() == null) {
                                ((Definitions) rootLevelProcess.eContainer()).getImports().add(0, imported);
                            }
View Full Code Here

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

    //  Interpret the body of a nested ownedComment as a comment-type and assign it as the EAnnotation.source of the parent.
    //
    if (EMOFExtendedMetaData.EMOF_OWNED_COMMENT.equals(name) && objects.peekEObject() instanceof EAnnotation)
    {
      EAnnotation annotation = (EAnnotation)objects.peekEObject();
      EObject container = annotation.eContainer();
      if (container instanceof EAnnotation)
      {
        EAnnotation parentAnnotation = (EAnnotation)container;
        parentAnnotation.setSource(annotation.getDetails().get(EMOFExtendedMetaData.EMOF_COMMENT_BODY));
        parentAnnotation.getEAnnotations().remove(annotation);
View Full Code Here

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

  public boolean validate(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context)
  {
    Object eValidator;
    EClass eType = eClass;
    while ((eValidator = eValidatorRegistry.get(eType.eContainer())) == null)
    {
      List<EClass> eSuperTypes = eType.getESuperTypes();
      if (eSuperTypes.isEmpty())
      {
        eValidator = eValidatorRegistry.get(null);
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.