Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.Path.toOSString()


    IPath filterPath= new Path(dialog.getFilterPath());
    IRuntimeClasspathEntry[] elems= new IRuntimeClasspathEntry[1];
    IPath path= new Path(res).makeAbsolute();
    elems[0]= JavaRuntime.newArchiveRuntimeClasspathEntry(path);

    setDialogSetting(LAST_PATH_SETTING, filterPath.toOSString());

    getViewer().addEntries(elems);
  }

  /**
 
View Full Code Here


      if(path.toFile().exists()) {
        list.add(JavaRuntime.newArchiveRuntimeClasspathEntry(path));
      }
    }

    setDialogSetting(LAST_PATH_SETTING, filterPath.toOSString());

    getViewer().addEntries(list.toArray(new IRuntimeClasspathEntry[0]));
  }

  /**
 
View Full Code Here

    IPath filterPath= new Path(dialog.getFilterPath());
    IRuntimeClasspathEntry[] elems= new IRuntimeClasspathEntry[1];
    IPath path= new Path(res).makeAbsolute();
    elems[0]= JavaRuntime.newArchiveRuntimeClasspathEntry(path);

    setDialogSetting(LAST_PATH_SETTING, filterPath.toOSString());

    getViewer().addEntries(elems);
  }

  /**
 
View Full Code Here

          IPath path = new Path(href);
          InputStream is;

          if (path.isAbsolute()) {
            // absolute path, just opens it
            is = new FileInputStream(path.toOSString());
          } else {
            // relative path, a file that is relative to the
            // "folder" path in this bundle.
            path = folder.append(path);
            is = FileLocator.openStream(bundle, path, false);
View Full Code Here

              project = root.getProject(path.segment(ECLIPSE_PROJECT_NAME_SEGMENT_INDEX));
              for (int i = ECLIPSE_PROJECT_NAME_SEGMENT_INDEX + 1; i < path.segments().length; i++) {
                builder.append(File.separator).append(path.segment(i));
              }
            } else {
              project = root.getProject(path.toOSString());
            }
           
            if (project != null) {
              outputFolderTextBox.setText(project.getLocation()
                  .toOSString() + builder.toString());
View Full Code Here

              project = root.getProject(path.segment(ECLIPSE_PROJECT_NAME_SEGMENT_INDEX));
              for (int i = ECLIPSE_PROJECT_NAME_SEGMENT_INDEX + 1; i < path.segments().length; i++) {
                builder.append(File.separator).append(path.segment(i));
              }
            } else {
              project = root.getProject(path.toOSString());
            }
           
            if (project != null) {
              outputLocation.setText(project.getLocation()
                  .toOSString() + builder.toString());
View Full Code Here

    String result = dialog.open();
    if (result == null)
      return;
    IPath filterPath = new Path(dialog.getFilterPath());
    settings.put(STORE_PATH_ID, filterPath.toOSString());
   
    IPath path = filterPath.append(dialog.getFileName());
   
    fileText.setText(path.toOSString());
  }
View Full Code Here

      String result = dialog.open();
      if (result == null)
        return;
      IPath filterPath = new Path(dialog.getFilterPath());
      settings.put(STORE_PATH_ID, filterPath.toOSString());

      String fileName = dialog.getFileName();
      IPath path= filterPath.append(fileName).makeAbsolute()

      try {
View Full Code Here

    String result = dialog.open();
    if (result == null)
      return;
    IPath filterPath = new Path(dialog.getFilterPath());
    settings.put(STORE_PATH_ID, filterPath.toOSString());

    String fileName = dialog.getFileName();
    IPath path = filterPath.append(fileName).makeAbsolute();

    // TODO ask for overwrite
View Full Code Here

        rawPath = filePath.substring(5);
      } else {
        rawPath = filePath;
      }
      Path f = new Path(rawPath);
      java.io.File nf = new java.io.File(f.toOSString());
      if (nf.exists() && nf.isFile()) {
        // file exists, now check if its blueprint or spring
        IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(f.makeRelativeTo(ResourcesPlugin.getWorkspace().getRoot().getLocation()));
        isBlueprint = blueprintXmlMatcher.matches(file);
      }
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.