Examples of trimFragment()


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

      }
      else if (resolve &&
            uri.isRelative() &&
            uri.hasRelativePath() &&
            (extendedMetaData == null ?
              !packageRegistry.containsKey(uri.trimFragment().toString()) :
              extendedMetaData.getPackage(uri.trimFragment().toString()) == null))
      {
        uri = helper.resolve(uri, resourceURI);
      }
      proxy.eSetProxyURI(proxyURI = uri);
View Full Code Here

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

      else if (resolve &&
            uri.isRelative() &&
            uri.hasRelativePath() &&
            (extendedMetaData == null ?
              !packageRegistry.containsKey(uri.trimFragment().toString()) :
              extendedMetaData.getPackage(uri.trimFragment().toString()) == null))
      {
        uri = helper.resolve(uri, resourceURI);
      }
      proxy.eSetProxyURI(proxyURI = uri);
    }
View Full Code Here

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

            resolvedObject = resourceSet.getEObject(proxyURI, false);
          }
        }
        else
        {
          EPackage ePackage = EPackage.Registry.INSTANCE.getEPackage(proxyURI.trimFragment().toString());
          if (ePackage != null)
          {
            Resource resource = ePackage.eResource();
            if (resource != null)
            {
View Full Code Here

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

    } else if (element instanceof URIEditorInput) {
      URI uri = ((URIEditorInput) element).getURI();
      Resource resource = null;
      try {
        resource = domain.getResourceSet().getResource(
            uri.trimFragment(), false);
        if (resource == null) {
          resource = domain.getResourceSet().createResource(
              uri.trimFragment());
        }
        if (!resource.isLoaded()) {
View Full Code Here

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

      try {
        resource = domain.getResourceSet().getResource(
            uri.trimFragment(), false);
        if (resource == null) {
          resource = domain.getResourceSet().createResource(
              uri.trimFragment());
        }
        if (!resource.isLoaded()) {
          try {
            Map options = new HashMap(
                GMFResourceFactory.getDefaultLoadOptions());
View Full Code Here

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

    } else if (element instanceof URIEditorInput) {
      URI uri = ((URIEditorInput) element).getURI();
      Resource resource = null;
      try {
        resource = domain.getResourceSet().getResource(
            uri.trimFragment(), false);
        if (resource == null) {
          resource = domain.getResourceSet().createResource(
              uri.trimFragment());
        }
        if (!resource.isLoaded()) {
View Full Code Here

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

      try {
        resource = domain.getResourceSet().getResource(
            uri.trimFragment(), false);
        if (resource == null) {
          resource = domain.getResourceSet().createResource(
              uri.trimFragment());
        }
        if (!resource.isLoaded()) {
          try {
            Map options = new HashMap(
                GMFResourceFactory.getDefaultLoadOptions());
View Full Code Here

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

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

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

        {
          result = URI.createURI("file:" + result);
        }
        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.trimFragment()

          {
            URI locationURI = URI.createURI(location);
            if (locationURI.isRelative())
            {
              String fragment = locationURI.fragment();
              locationURI = URI.createPlatformPluginURI(element.getDeclaringExtension().getContributor().getName() + "/" + locationURI.trimFragment().toString(), true);
              if (fragment != null)
              {
                locationURI = locationURI.appendFragment(fragment);
              }
            }
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.