Examples of eResource()


Examples of org.eclipse.xsd.XSDSchema.eResource()

      {
        if (containingXSDSchema == null)
        {
          containingXSDSchema = rootSchema;
        }
        ePackage.setName(validName(containingXSDSchema.eResource().getURI().trimFileExtension().lastSegment(), true));
        ePackage.setNsURI(containingXSDSchema.eResource().getURI().toString());

        // Also register against the nsURI for the case that the target namespace is null.
        //
        // extendedMetaData.putPackage(ePackage.getNsURI(), ePackage);
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.Document.eResource()

  @Override
  protected Document initDocFromFile(String string, String filename)
      throws Exception {
    Document doc = super.initDocFromFile(string, HTML_SRC + filename);
    URI uri = doc.eResource().getURI();
    URI appendSegment = uri.trimSegments(1).appendSegment(string+".xdoc");
    doc.eResource().setURI(appendSegment);
    return doc;
  }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.Identifiable.eResource()

          Identifiable _ref_1 = it.getRef();
          String _name = _ref_1.getName();
          String _plus = ("error: Cannot resolve reference to " + _name);
          String _plus_1 = (_plus + " from ");
          Identifiable _ref_2 = it.getRef();
          Resource _eResource = _ref_2.eResource();
          URI _uRI = _eResource.getURI();
          String _plus_2 = (_plus_1 + _uRI);
          InputOutput.<String>println(_plus_2);
          _xblockexpression_1 = ((URI) null);
        }
View Full Code Here

Examples of org.eclipse.xtext.xdoc.xdoc.XdocFile.eResource()

  private EclipseResourceFileSystemAccess2 fsa;
 
  @Test
  public void testRef() {
    XdocFile _doc = this.getDoc("aRefTest.xdoc");
    Resource _eResource = _doc.eResource();
    this._eclipseHelpGenerator.doGenerate(_eResource, this.fsa);
    File _targetFile = this.getTargetFile("aRefTest.html");
    boolean _exists = _targetFile.exists();
    Assert.assertTrue(_exists);
  }
View Full Code Here

Examples of org.eclipselabs.mongoemf.junit.model.ETypes.eResource()

    saveObject(eTypes);

    // Verify

    assertThat(eTypes.eResource().getURI().segmentCount(), is(3));
    assertThat(eTypes.eResource().getURI().segment(2), is(notNullValue()));
    EChecker.checkObject(eTypes, createResourceSet());
  }

  @Test
View Full Code Here

Examples of org.eclipselabs.mongoemf.junit.model.PrimaryObject.eResource()

    // Test : Delete the target object and reload the primary object

    targetObject.eResource().delete(null);
    ResourceSet testResourceSet = createResourceSet();
    Resource resource = testResourceSet.getResource(primaryObject.eResource().getURI(), true);

    // Verify : Check that the object was stored correctly.

    assertThat(resource, is(notNullValue()));
    assertThat(resource.getContents().size(), is(1));
View Full Code Here

Examples of org.eclipselabs.mongoemf.junit.model.TargetObject.eResource()

    assertThat(iterator, is(notNullValue()));

    assertTrue(iterator.hasNext());
    TargetObject actualObject = (TargetObject) iterator.next();
    assertThat(actualObject.getSingleAttribute(), is("junit"));
    assertThat(actualObject.eResource(), is(notNullValue()));
    assertThat(actualObject.eResource().getURI(), is(targetObject.eResource().getURI()));
    assertFalse(iterator.hasNext());
  }

  @Test
View Full Code Here

Examples of org.eclipselabs.mongoemf.perf.model.ObjectGroup.eResource()

    resourceSet.getURIConverter().getURIMap().put(URI.createURI("http://localhost/junit/"), URI.createURI("mongodb://localhost/junit/"));

    System.out.println("Loading data");

    long startTime = System.currentTimeMillis();
    Resource resultResource = resourceSet.getResource(root.eResource().getURI(), true);

    System.out.println("Traversing the object tree");

    new TreeVisitor().doSwitch(resultResource.getContents().get(0));
    long endTime = System.currentTimeMillis();
View Full Code Here

Examples of org.locationtech.udig.project.internal.Map.eResource()

     */
    public String getText( Object object ) {
        Map map = ((Map) object);
        String label = map.getName();
        if (label == null) {
            Resource resource = map.eResource();
            if (resource != null) {
                String toString = resource.toString();
                int lastSlash = toString.lastIndexOf(File.pathSeparator);
                if (lastSlash == -1) lastSlash = 0;
                label = toString.substring(lastSlash);
View Full Code Here

Examples of org.locationtech.udig.project.internal.Project.eResource()

                    ProjectPackage.PROJECT_REGISTRY__PROJECTS);
        }

        for (Iterator<Project> iter = projects.iterator(); iter.hasNext();) {
            Project project = iter.next();
            if (project.eResource() == null) {
                iter.remove(); // delete this one its resource is missing
            }
        }
        return projects;
    }
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.