Examples of eContents()


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

    final EObject binding = b.eContainer();
    EStructuralFeature _eContainingFeature = b.eContainingFeature();
    String _name = _eContainingFeature.getName();
    String _plus = ("_" + _name);
    EObject _eContainer = binding.eContainer();
    EList<EObject> _eContents = _eContainer.eContents();
    int _indexOf = _eContents.indexOf(binding);
    return (_plus + Integer.valueOf(_indexOf));
  }
 
  public String syntheticToInstanceName(final BindingAST binding) {
View Full Code Here

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

    return (_plus + Integer.valueOf(_indexOf));
  }
 
  public String syntheticToInstanceName(final BindingAST binding) {
    EObject _eContainer = binding.eContainer();
    EList<EObject> _eContents = _eContainer.eContents();
    int _indexOf = _eContents.indexOf(binding);
    return ("_toInstance" + Integer.valueOf(_indexOf));
  }
 
  public String simpleName(final ModuleAST module) {
View Full Code Here

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

          rootElementNamespace = ExtendedMetaData.INSTANCE.getNamespace(eContainmentFeature);
          if (XMI_KIND.equals(kind) && isXMINameAndNamespace(rootElementName, rootElementNamespace))
          {
            // Look for the first non-XMI element.
            //
            for (EObject candidate : root.eContents())
            {
              eContainmentFeature = candidate.eContainmentFeature();
              rootElementNamespace = ExtendedMetaData.INSTANCE.getNamespace(eContainmentFeature);
              if (!isXMINamespace(rootElementNamespace))
              {
View Full Code Here

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

                                count = 0;
                                break;
                            }
                        }
                    } else {
                        EList<EObject> contents = eObj.eContents();
                        for (EObject it : contents) {
                            if (filter.matches(it)) {
                                count++;
                                if (!all)
                                    break;
View Full Code Here

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

          EObject _eContainer_1 = ((Chapter)identifiable).eContainer();
          EObject _eContainer_2 = _eContainer_1.eContainer();
          if ((_eContainer_2 instanceof Document)) {
            EObject _eContainer_3 = ((Chapter)identifiable).eContainer();
            EObject _eContainer_4 = _eContainer_3.eContainer();
            EList<EObject> _eContents = _eContainer_4.eContents();
            EObject _eContainer_5 = ((Chapter)identifiable).eContainer();
            int _indexOf = _eContents.indexOf(_eContainer_5);
            _xifexpression_1 = ("_" + Integer.valueOf(_indexOf));
          } else {
            _xifexpression_1 = "";
View Full Code Here

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

          } else {
            _xifexpression_1 = "";
          }
          String _plus = (_xifexpression_1 + "_");
          EObject _eContainer_6 = ((Chapter)identifiable).eContainer();
          EList<EObject> _eContents_1 = _eContainer_6.eContents();
          int _indexOf_1 = _eContents_1.indexOf(identifiable);
          _xifexpression = (_plus + Integer.valueOf(_indexOf_1));
        } else {
          String _xifexpression_2 = null;
          EObject _eContainer_7 = ((Chapter)identifiable).eContainer();
View Full Code Here

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

        } else {
          String _xifexpression_2 = null;
          EObject _eContainer_7 = ((Chapter)identifiable).eContainer();
          if ((_eContainer_7 instanceof Document)) {
            EObject _eContainer_8 = ((Chapter)identifiable).eContainer();
            EList<EObject> _eContents_2 = _eContainer_8.eContents();
            int _indexOf_2 = _eContents_2.indexOf(identifiable);
            _xifexpression_2 = ("_" + Integer.valueOf(_indexOf_2));
          } else {
            _xifexpression_2 = "";
          }
View Full Code Here

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

        URI _uRI = _eResource.getURI();
        URI _trimFileExtension = _uRI.trimFileExtension();
        String _lastSegment = _trimFileExtension.lastSegment();
        String _plus = (_lastSegment + "_");
        EObject _eContainer_1 = ((Part)identifiable).eContainer();
        EList<EObject> _eContents = _eContainer_1.eContents();
        int _indexOf = _eContents.indexOf(identifiable);
        String _plus_1 = (_plus + Integer.valueOf(_indexOf));
        _switchResult = (_plus_1 + ".html");
      }
    }
View Full Code Here

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

        }
       
        // Need clean up everything below
        EObject eo = (EObject) element;
        // Make a defensive copy
        EObject[] l = eo.eContents().toArray(new EObject[0]);
       
        // Unrender ALL children
       
        MUIElement selectedElement = null;
        if( element instanceof MElementContainer ) {
View Full Code Here

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

            }
          }
        }
       
        if (selectedElement != null
            && eo.eContents().contains(selectedElement)) {
          // now remove the selected element
          removeGui(selectedElement);
        }
       
        if (element instanceof MContribution) {
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.