Examples of eSet()


Examples of at.bestsolution.efxclipse.formats.fxg.fxg.FXGElement.eSet()

              if (FXG_NS.equals(attributes.getURI(i)) || "".equals(attributes.getURI(i))) {
                String name = attributes.getLocalName(i);
                EStructuralFeature f = element.eClass().getEStructuralFeature(name);
                if (f != null) {
                  Object o = EcoreUtil.createFromString((EDataType) f.getEType(), attributes.getValue(i));
                  element.eSet(f, o);
                } else {
                  System.err.println("Could not find feature '" + name + "' in " + element.eClass().getName());
                }
              }
            }
View Full Code Here

Examples of at.bestsolution.efxclipse.formats.svg.svg.SvgElement.eSet()

            if (SVG_NS.equals(attributes.getURI(i)) || "".equals(attributes.getURI(i))) {
              String name = attributes.getLocalName(i).replaceAll("-", "_");
              EStructuralFeature f = e.eClass().getEStructuralFeature(name);
              if (f != null) {
                Object o = EcoreUtil.createFromString((EDataType) f.getEType(), attributes.getValue(i));
                e.eSet(f, o);
              } else {
                System.err.println("Could not find feature '" + name + "' in " + e.eClass().getName());
              }
            } else if( XLINK_NS.equals(attributes.getURI(i)) ) {
              String name = "xlink__" + attributes.getLocalName(i).replaceAll("-", "_");
View Full Code Here

Examples of eu.admire.dispel.references.IdentifierReference.eSet()

   
    EReference targetReference = ReferencesPackage.Literals.ELEMENT_REFERENCE__TARGET;
   
    IdentifierReference mainIdReference = ReferencesFactory.eINSTANCE.createIdentifierReference();
   
    mainIdReference.eSet(
        targetReference, proxy);
    String id = ((InternalEObject)proxy).eProxyURI().fragment();
    id = id.substring("EMFTEXT_INTERNAL_URI_FRAGMENT_".length());
    id = id.substring(id.indexOf("_") + 1);
   
View Full Code Here

Examples of no.hal.jex.JavaElement.eSet()

    JavaElement javaElement = findJavaElement(name, javaElements, eClass);
    if (javaElement == null) {
      javaElement = (JavaElement) JexFactory.eINSTANCE.create(eClass);
      EStructuralFeature nameFeature = eClass.getEStructuralFeature("name");
      if (nameFeature != null) {
        javaElement.eSet(nameFeature, name);
      }
      javaElements.add(javaElement);
    }
    return javaElement;
  }
View Full Code Here

Examples of org.eclipse.bpmn2.Task.eSet()

      task.setName("Log Task");
      ArrayList<EStructuralFeature> attributes = Bpmn2Preferences
          .getAttributes(task.eClass());
      for (EStructuralFeature eStructuralFeature : attributes) {
        if (eStructuralFeature.getName().equals("taskName"))
          task.eSet(eStructuralFeature, "log");
      }
      return task;
    }

    @Override
View Full Code Here

Examples of org.eclipse.bpmn2.Task.eSet()

      task.setName("Email Task");
      ArrayList<EStructuralFeature> attributes = Bpmn2Preferences
          .getAttributes(task.eClass());
      for (EStructuralFeature eStructuralFeature : attributes) {
        if (eStructuralFeature.getName().equals("taskName"))
          task.eSet(eStructuralFeature, "email");
      }
      return task;
    }

    @Override
View Full Code Here

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

        {
          ((List)oldContainer.eGet(oldContainmentReference)).add(oldContainmentIndex, rootObject);
        }
        else
        {
          oldContainer.eSet(oldContainmentReference, rootObject);
        }
      }
    }
    else if (documentRoot != null)
    {
View Full Code Here

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

        {
          ((List)oldContainer.eGet(oldContainmentReference)).add(oldContainmentIndex, rootObject);
        }
        else
        {
          oldContainer.eSet(oldContainmentReference, rootObject);
        }
      }
    }
    else if (documentRoot != null)
    {
View Full Code Here

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

      // TODO what if containerFeature is not many?
      throw new IllegalArgumentException("Cannot do anything with the structural feature: " + containerFeature);
    }

    // we now need to set its source feature
    object.eSet(sourceFeature, source);
   
    // we now need to set its target feature
    object.eSet(targetFeature, target);

    return object;
View Full Code Here

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

    // we now need to set its source feature
    object.eSet(sourceFeature, source);
   
    // we now need to set its target feature
    object.eSet(targetFeature, target);

    return object;
   
  }
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.