Examples of toPlatformString()


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

    uri = uri.trimFileExtension();
    uri = uri.appendFileExtension("dispel");
    ResourceSet rSet = d.eResource().getResourceSet();
    final IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace(
        ).getRoot();
    IResource file = workspaceRoot.findMember(uri.toPlatformString(true));
   
    try {
      if (file == null || !file.exists()) {
        Resource createResource = rSet.createResource(uri);
        createResource.save(new HashMap());
View Full Code Here

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

      {
        return createArchiveOutputStream(converted)
      }
      else if (converted.isPlatformResource())
      {
        return createPlatformResourceOutputStream(converted.toPlatformString(true));
      }
      else if (isEFSScheme(scheme))
      {
        return createEFSOutputStream(converted);
      }
View Full Code Here

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

      {
        return createArchiveInputStream(converted);
      }
      else if (converted.isPlatformResource())
      {
        return createPlatformResourceInputStream(converted.toPlatformString(true));
      }     
      else if (isEFSScheme(scheme))
      {
        return createEFSInputStream(converted);
      }
View Full Code Here

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

    URI uri = resource.getURI();

    try {
      IWorkspace workspace = ResourcesPlugin.getWorkspace();
      String platformString = uri.toPlatformString(true);

      // platformString is null if file is outside of workspace
      if ((platformString == null || workspace.getRoot().getFile(new Path(platformString)).exists())
          && !resource.isLoaded()) {
        handler.loadResource();
View Full Code Here

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

    URI uri = resource.getURI();
    URI uriTrimmed = uri.trimFragment();

    if (uriTrimmed.isPlatformResource()) {

      String platformString = uriTrimmed.toPlatformString(true);

      IResource fileResource = ResourcesPlugin.getWorkspace().getRoot().findMember(platformString);

      if (fileResource != null) {
        IProject project = fileResource.getProject();
View Full Code Here

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

      bpmnUri = bpmnUri.appendFileExtension("bpmn20.xml");

      IProject project = null;
      String parentDiagramName = null;
      if (bpmnUri.isPlatformResource()) {
        String platformString = bpmnUri.toPlatformString(true);
        IResource fileResource = ResourcesPlugin.getWorkspace().getRoot().findMember(platformString);
        if (fileResource != null) {
          project = fileResource.getProject();
          parentDiagramName = uri.trimFragment().trimFileExtension().lastSegment();
        }
View Full Code Here

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

    URI uri = resource.getURI();
    URI uriTrimmed = uri.trimFragment();

    if (uriTrimmed.isPlatformResource()) {

      String platformString = uriTrimmed.toPlatformString(true);

      IResource fileResource = ResourcesPlugin.getWorkspace().getRoot().findMember(platformString);

      if (fileResource != null) {
        IProject project = fileResource.getProject();
View Full Code Here

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

    URI uri = resource.getURI();
    URI uriTrimmed = uri.trimFragment();

    if (uriTrimmed.isPlatformResource()) {

      String platformString = uriTrimmed.toPlatformString(true);
      IResource fileResource = ResourcesPlugin.getWorkspace().getRoot().findMember(platformString);

      if (fileResource != null) {
        currentProject = fileResource.getProject();
      }
View Full Code Here

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

        if (jexRelatedFiles[i + 1] != null) {
          name = MessageFormat.format(jexRelatedFiles[i + 1], formatArgs);
        }
        URI nameURI = URI.createURI(name);
        if (nameURI.isPlatformResource()) {
          name = nameURI.toPlatformString(false);
        }
        if (name.startsWith("/")) {
          int start = 1;
          String projectPath = JdtHelper.getJavaProject(jexRes.getURI()).getPath().toString();
          if (name.startsWith(projectPath)) {
View Full Code Here

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

            Object firstElement = structuredSelection.getFirstElement();
            if(firstElement instanceof IEObjectDescription) {
              IEObjectDescription eObjectDescription = (IEObjectDescription) firstElement;
              URI resourceURI = eObjectDescription.getEObjectURI().trimFragment();
              if(resourceURI.isPlatform()) {
                messageLabel.setText(resourceURI.toPlatformString(true));
              }
              else if(resourceURI.isFile()) {
                messageLabel.setText(resourceURI.toFileString());
              }
              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.