Package org.eclipse.emf.common.util

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


            resource.unload();
            throw e;
          }
        }
        if (uri.fragment() != null) {
          EObject rootElement = resource.getEObject(uri.fragment());
          if (rootElement instanceof Diagram) {
            document.setContent((Diagram) rootElement);
            return;
          }
        } else {
View Full Code Here


          } catch (IOException e) {
            resource.unload();
            throw e;
          }
        }
        if (uri.fragment() != null) {
          EObject rootElement = resource.getEObject(uri.fragment());
          if (rootElement instanceof Diagram) {
            document.setContent((Diagram) rootElement);
            return;
          }
View Full Code Here

            resource.unload();
            throw e;
          }
        }
        if (uri.fragment() != null) {
          EObject rootElement = resource.getEObject(uri.fragment());
          if (rootElement instanceof Diagram) {
            document.setContent((Diagram) rootElement);
            return;
          }
        } else {
View Full Code Here

          if (location != null)
          {
            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

  protected String getURIFragment(Resource containingResource, EObject object)
  {
    if (roots != null && containingResource == resource && !EcoreUtil.isAncestor(roots, object))
    {
      URI uriResult = handleDanglingHREF(object);
      return uriResult == null || !uriResult.hasFragment() ? null : uriResult.fragment();
    }
    else
    {
      String result = containingResource.getURIFragment(object);
      if (result.length() > 0 && result.charAt(0) != '/')
View Full Code Here

      else if ("/-1".equals(result))
      {
        if (object.eResource() != containingResource)
        {
          URI uriResult = handleDanglingHREF(object);
          return uriResult == null || !uriResult.hasFragment() ? null : uriResult.fragment();
        }
      }
      else if (fragmentPrefixes != null)
      {
        for (int i = 0; i < fragmentPrefixes.length; ++i)
View Full Code Here

          } catch (IOException e) {
            resource.unload();
            throw e;
          }
        }
        if (uri.fragment() != null) {
          EObject rootElement = resource.getEObject(uri.fragment());
          if (rootElement instanceof Diagram) {
            document.setContent((Diagram) rootElement);
            return;
          }
View Full Code Here

            resource.unload();
            throw e;
          }
        }
        if (uri.fragment() != null) {
          EObject rootElement = resource.getEObject(uri.fragment());
          if (rootElement instanceof Diagram) {
            document.setContent((Diagram) rootElement);
            return;
          }
        } else {
View Full Code Here

          } catch (IOException e) {
            resource.unload();
            throw e;
          }
        }
        if (uri.fragment() != null) {
          EObject rootElement = resource.getEObject(uri.fragment());
          if (rootElement instanceof Diagram) {
            document.setContent((Diagram) rootElement);
            return;
          }
View Full Code Here

            resource.unload();
            throw e;
          }
        }
        if (uri.fragment() != null) {
          EObject rootElement = resource.getEObject(uri.fragment());
          if (rootElement instanceof Diagram) {
            document.setContent((Diagram) rootElement);
            return;
          }
        } 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.