Examples of appendFragment()


Examples of org.eclipse.emf.common.util.URI.appendFragment()

    if (query != null) {
      result = result.appendQuery(query);
    }
    if (fragment != null) {
      result = result.appendFragment(fragment);
    }

    return result;
  }
 
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.appendFragment()

  //
  // message Person {}
  @Test public void should_return_uri_of_model_object() {
    Message message = xtext.find("Person", Message.class);
    URI expected = xtext.resource().getURI();
    expected = expected.appendFragment(xtext.resource().getURIFragment(message));
    assertThat(objects.uriOf(message), equalTo(expected));
  }
}
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.appendFragment()

   * @return the URI of the given model element.
   */
  public URI uriOf(EObject e) {
    Resource resource = e.eResource();
    URI uri = resource.getURI();
    return uri.appendFragment(resource.getURIFragment(e));
  }
}
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.appendFragment()

        d = (Diagram) e;
        fragment = diagramResource.getURIFragment(e);
      }
    }
   
    diagramModelURI = diagramModelURI.appendFragment(fragment);
    DiagramEditorInput editorInput = new DiagramEditorInput(
        diagramModelURI, editingDomain,
        "eu.admire.workbench.visualeditor.DispelDiagramTypeProvider");
   
    try {
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.appendFragment()

        uriFragment = uriFragment + "/" + CLASSIFIERS_SUB_PATH_PREFIX;
      }
      uriFragment = uriFragment + classNames[i] + CLASSIFIERS_PATH_SUFIX;
    }
   
    logicalUri = logicalUri.appendFragment(
        uriFragment);
    return logicalUri;
  }
 
  /**
 
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.appendFragment()

          uri = uriList.get(id);
        }
        String fragment = readString();
        if (fragment != null)
        {
          uri = uri.appendFragment(fragment);
        }
        return uri;
      }
    }
  }
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.appendFragment()

        if (result.hasAbsolutePath())
        {
          result = URI.createPlatformResourceURI(result.trimFragment().toString(), false);
          if (fragment != null)
          {
            result = result.appendFragment(fragment);
          }
        }
      }
      else
      {
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.appendFragment()

        else
        {
          result = URI.createFileURI(new File(result.trimFragment().toString()).getAbsolutePath());
          if (fragment != null)
          {
            result = result.appendFragment(fragment);
          }
        }
      }
    }
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.appendFragment()

          uri = uriList.get(id);
        }
        String fragment = readString();
        if (fragment != null)
        {
          uri = uri.appendFragment(fragment);
        }
        return uri;
      }
    }
  }
View Full Code Here

Examples of org.eclipse.emf.common.util.URI.appendFragment()

            {
              locationURI = URI.createPlatformPluginURI(element.getDeclaringExtension().getContributor().getName() + "/" + location, true);
            }
            if (!locationURI.hasFragment())
            {
              locationURI = locationURI.appendFragment("/");
            }
            return (EPackage)resourceSet.getEObject(locationURI, true);
          }
          else
          {
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.