Examples of eResource()


Examples of fr.obeo.releng.targetplatform.TargetPlatform.eResource()

      _builder.append("location \"mylocationURI1\"");
      _builder.newLine();
      _builder.append("location \"mylocationURI1\"");
      _builder.newLine();
      final TargetPlatform targetPlatform = this.parser.parse(_builder);
      Resource _eResource = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      boolean _isEmpty = _errors.isEmpty();
      Assert.assertTrue(_isEmpty);
      TargetPlatformValidator _validator = tester.validator();
      _validator.checkSameIDForAllLocationWithSameURI(targetPlatform);
View Full Code Here

Examples of my.home.dsl.deepClone.Model.eResource()

      String _issuesToString = _validate.issuesToString();
      String _trim = _issuesToString.trim();
      Assert.assertEquals(_string, _trim);
      InMemoryFileSystemAccess _inMemoryFileSystemAccess = new InMemoryFileSystemAccess();
      final InMemoryFileSystemAccess fsa = _inMemoryFileSystemAccess;
      Resource _eResource = model.eResource();
      this.generatorDslToJava.doGenerate(_eResource, fsa);
      Map<String,CharSequence> _textFiles = fsa.getTextFiles();
      int _size = _textFiles.size();
      Assert.assertEquals(1, _size);
      final String topClonerJavaFileName = (IFileSystemAccess.DEFAULT_OUTPUT + "a/b/c/cloners/BookCloner987.java");
View Full Code Here

Examples of no.hal.jex.AbstractRequirement.eResource()

    boolean validate = false;
    if (location.endsWith(REQUIREMENT_VALIDATION_SUFFIX)) {
      location = location.substring(0, location.length() - REQUIREMENT_VALIDATION_SUFFIX.length());
      validate = true;
    }
    Resource res = req.eResource();
    EObject eo = res.getEObject(location);
    if (eo instanceof AbstractRequirement) {
      setSelectedRequirement((AbstractRequirement)eo);
      fireRequirementSelected(req);
      if (validate && req instanceof JavaRequirement) {
View Full Code Here

Examples of org.csu.idl.idlmm.TranslationUnit.eResource()

   * @param include
   * @return
   */
  public static int include2stream(Include include) {
    TranslationUnit tu = (TranslationUnit) include.eContainer();
    Resource resource = tu.eResource();
    ResourceSet resourceSet = resource.getResourceSet();
    EList<Resource> resources = resourceSet.getResources();

    int result = tu.getIncludes().indexOf(include);
    int res = resources.indexOf(resource);
View Full Code Here

Examples of org.dmg.pmml._40.NeuralOutputType.eResource()

    for (Object o : result) {

      if (o instanceof NeuralOutputType) {
        NeuralOutputType neuron = (NeuralOutputType) o;

        neuron.setFromNeuron(getNeuronById(neuron.eResource(), neuron.getOutputNeuron()));

      }
    }
    /***************************************************/   
   
 
View Full Code Here

Examples of org.dmg.pmml._40.NeuronType.eResource()

    for (Object o : result) {     
      if (o instanceof NeuronType) {         
        NeuronType neuron = (NeuronType)o;
   
        for (ConType con: neuron.getCon())       
          con.setFromNeuron( getNeuronById(neuron.eResource(),con.getFrom())  );   
      }           
    }         
        /***************************************************/ 
   
    return result;
View Full Code Here

Examples of org.eclipse.bpmn2.Definitions.eResource()

        assertTrue(definitions.getRootElements().size() == 1);
        Process process = getRootProcess(definitions);
        CatchEvent g = (CatchEvent) process.getFlowElements().get(0);
        assertEquals("catch timer event", g.getName());
        assertTrue(g.getEventDefinitions().iterator().next() instanceof TimerEventDefinition);
        definitions.eResource().save(System.out, Collections.emptyMap());
    }
   
    @Test
    public void testIntermediateCatchEscalationEventUnmarshalling() throws Exception {
        Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
View Full Code Here

Examples of org.eclipse.bpmn2.Import.eResource()

                        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);
                            }
                        }
                       
                    } else {
View Full Code Here

Examples of org.eclipse.bpmn2.ItemDefinition.eResource()

                    } else if (child instanceof DataObject) {
                     // 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.EClass.eResource()

    if (selection instanceof IStructuredSelection) {
      IStructuredSelection sel = (IStructuredSelection) selection;
      Object el = sel.getFirstElement();
      if (el instanceof EClass) {
        EClass eclass = (EClass) el;
        String platformString = eclass.eResource().getURI().toPlatformString(true);
        Path path = new Path(platformString);
        IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
        if (file == null) {
          return;
        }
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.