Package org.eclipse.core.runtime

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


    } else {
      IPath entryPath = new Path(initPath);
      if (ArchieveFileFilter.isZipPath(entryPath)) {
        entryPath.removeLastSegments(1);
      }
      initPath = entryPath.toOSString();
    }
    return initPath;
  }

  // /*
 
View Full Code Here


                  .trim().length() == 0)) {
            IPath path = new Path(newPath);
            path = path.removeLastSegments(1);
            path = path.append(PHP_INI);
            if (path.toFile().exists()) {
              fPHPIni.setText(path.toOSString());
            }
          }
        }
        updateItem();
      }
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

    if (activator == null)
      return null;

    IPath path = new Path(activator.getStateLocation().toOSString());

    File bundleRoot = new File(path.toOSString());
    if (!bundleRoot.exists() && !bundleRoot.mkdir())
      throw new IOException(NLS.bind("Synchronization: Unable to create folder ''{0}''", bundleRoot.toString())); //$NON-NLS-1$

    path = path.append(UNCOMMITTED_SYNCITEMS_FILE);
View Full Code Here

    if (!bundleRoot.exists() && !bundleRoot.mkdir())
      throw new IOException(NLS.bind("Synchronization: Unable to create folder ''{0}''", bundleRoot.toString())); //$NON-NLS-1$

    path = path.append(UNCOMMITTED_SYNCITEMS_FILE);

    return new File(path.toOSString());
  }
}
View Full Code Here

    if (activator == null)
      return;

    IPath path = new Path(activator.getStateLocation().toOSString());
    path = path.append(ICONS_FOLDER);
    File iconsFolder = new File(path.toOSString());
    if (!iconsFolder.exists())
      return;

    File[] files = iconsFolder.listFiles();
    for (File file : files) {
View Full Code Here

    if (activator == null)
      return null;

    IPath path = new Path(activator.getStateLocation().toOSString());
    path = path.append(ICONS_FOLDER);
    File root = new File(path.toOSString());
    if (!root.exists())
      res = root.mkdir();
    else
      res = true;
View Full Code Here

    path = path.append(fileName);

    if (!res)
      return null;

    return new File(path.toOSString());
  }

  private static File getImageFile(long id) {
    return getImageFile(id + ".ico"); //$NON-NLS-1$
  }
View Full Code Here

    {
        final Composite root = (Composite) super.createDialogArea(parent);
        createControls(root);

        final Path fullPath = new Path(editorOptions.getFullPath());
        fileNameText.setText(fullPath.toOSString());
        browseButton.addListener(Selection, new Listener()
        {
            public void handleEvent(Event event)
            {
                Path newPath = FileDialogs.openSaveXML(fullPath);
View Full Code Here

            public void handleEvent(Event event)
            {
                Path newPath = FileDialogs.openSaveXML(fullPath);
                if (newPath != null)
                {
                    fileNameText.setText(newPath.toOSString());
                }
            }
        });

        final Listener correctnessChecker = new Listener()
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.