Examples of trimFragment()


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

    super.init(site, input);
  }

  private void getModelPathFromInput(DiagramEditorInput input) {
    URI uri = input.getDiagram().eResource().getURI();
    String uriString = uri.trimFragment().toPlatformString(true);
    modelFile = BPMN2DiagramCreator.getModelFile(new Path(uriString));
  }

  /**
   * Beware, creates a new input and changes this editor!
View Full Code Here

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

    if (templateContent != null) {
      // there is a template to use
      final InputStream is
        = Thread.currentThread().getContextClassLoader().getResourceAsStream(templateContent);

      finalDataFile = FileService.recreateDataFile(new Path(uri.trimFragment().toPlatformString(true)));

      final String filePath = finalDataFile.getLocationURI().getRawPath().replaceAll("%20", " ");

      OutputStream os = null;
      try {
View Full Code Here

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

    // : sourceContainer.getEObjectURI();

    final URI eObjectURI = (containerEObjectURI == null)
        ? referenceDescription.getSourceEObjectUri()
        : containerEObjectURI;
    IResourceDescription resourceDescription = resourceDescriptions.getResourceDescription(eObjectURI.trimFragment());
    if(resourceDescription != null) {
      ReferenceSearchViewTreeNode resourceNode = resourceNode(resourceDescription, isUpdateViewer);
      ReferenceSearchViewTreeNode referenceNode = null;
      for(IEObjectDescription eObjectDescription : resourceDescription.getExportedObjects()) {
        if(eObjectDescription.getEObjectURI().equals(eObjectURI)) {
View Full Code Here

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

    if (resourceSet != null) return EcoreUtil.resolve((EObject)proxy, resourceSet);
     
    URI proxyURI = ((InternalEObject)proxy).eProxyURI();
    if (proxyURI != null)
    {
      EPackage ePackage = HelperContextImpl.getBuiltInModelRegistry().getEPackage(proxyURI.trimFragment().toString());
      if (ePackage != null)
      {
        resource = ePackage.eResource();
        if (resource != null)
        {
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.