Examples of fragment()


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

          } 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

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

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

                if (location.endsWith("#/"))
                {
                  location = location.substring(0, location.length() - 2);
                  if (uri != null && uri.hasFragment())
                  {
                    location += "#" + uri.fragment();
                  }
                }
                xsiSchemaLocation.append(location);
              }
            }
View Full Code Here

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

          if (ePackage != null)
          {
            Resource resource = ePackage.eResource();
            if (resource != null)
            {
              resolvedObject = resource.getEObject(proxyURI.fragment().toString());
            }
          }
        }

        if (resolvedObject != null && resolvedObject != proxy)
View Full Code Here

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

          } 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

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

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

          } 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

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

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

          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

Examples of org.jdom2.input.StAXStreamBuilder.fragment()

          XMLStreamReader xsr = sinfactory.createXMLStreamReader(new StringReader(expect));
          assertTrue(xsr.getEventType() == XMLStreamConstants.START_DOCUMENT);
          assertTrue(xsr.hasNext());
          xsr.next();
         
      Element backagain = (Element)sbuilder.fragment(xsr);

      // convert the input to a SAX Stream

      sw.getBuffer().setLength(0);
          xsw = soutfactory.createXMLStreamWriter(sw);
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.