Package org.eclipse.emf.common.util

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


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

            {
              String fragment = locationURI.fragment();
              locationURI = URI.createPlatformPluginURI(element.getDeclaringExtension().getContributor().getName() + "/" + locationURI.trimFragment().toString(), true);
              if (fragment != null)
              {
                locationURI = locationURI.appendFragment(fragment);
              }
            }
            if (!locationURI.hasFragment())
            {
              locationURI = locationURI.appendFragment("/");
View Full Code Here

                locationURI = locationURI.appendFragment(fragment);
              }
            }
            if (!locationURI.hasFragment())
            {
              locationURI = locationURI.appendFragment("/");
            }
            return (EPackage)resourceSet.getEObject(locationURI, true);
          }
          else
          {
View Full Code Here

        "file".equalsIgnoreCase(url.getProtocol()) ?
          URI.createFileURI(URI.decode(url.getFile())) :
          URI.createURI(url.toString());
      if (fragment != null)
      {
        result = result.appendFragment(fragment);
      }
      return result;
    }
   
    /**
 
View Full Code Here

          ResourceSet resourceSet = resource.getResourceSet();
          if (resourceSet != null)
          {
            uri = resourceSet.getURIConverter().normalize(uri);
          }
          uri = uri.appendFragment(resource.getURIFragment(eObject));
        }
        else
        {
          URI.createHierarchicalURI(null, null, resource.getURIFragment(eObject));
        }
View Full Code Here

    } else if (! isDescriptionLocation(s)) {
      return null;
    } else if (uri == null || s.startsWith("/")) {
      uri = URI.createPlatformResourceURI(s);
    } else if (s.startsWith("#")) {
      uri = uri.appendFragment(s.substring(1));
    } else {
      uri = uri.trimSegments(1).appendSegment(s);
    }
    return uri;
  }
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.