Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IPath.makeAbsolute()


    final IPath p = new Path(path);
    if (p.isAbsolute() && p.segmentCount() > 1) {
      return AbstractUIPlugin.imageDescriptorFromPlugin(p.segment(0), p
          .removeFirstSegments(1).makeAbsolute().toString());
    } else {
      return getBundledImageDescriptor(p.makeAbsolute().toString());
    }
  }

  /**
   * Returns an image for the image file at the given plug-in relative path.
View Full Code Here


    IPath sketchLoc = getSketchPath();
    IPath sketchbook = ProcessingCorePreferences.current().getSketchbookPath();
    if (sketchLoc == null
        || !sketchLoc.toFile().exists()
        || (sketchbook != null
            && sketchLoc.makeAbsolute().equals(sketchbook.makeAbsolute()))) {
      setErrorMessage(null);
      setMessage("Please specify a folder containing a sketch.");
      return;
    }
View Full Code Here

    // Duplicate entries cause errors, so prep them with a set
    HashSet<IClasspathEntry> entries = new HashSet<IClasspathEntry>();
   
    // VM
    entries.add(JavaCore.newContainerEntry(vmPath.makeAbsolute())); // JVM
   
    // Processing Libraries
    IPath plibs = new Path(ProcessingCore.getCore().getCoreJarFile().getAbsolutePath());
    entries.add(JavaCore.newLibraryEntry( plibs, null, null, false ));
   
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.