Package org.eclipse.core.runtime

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


            bundlePath = resource.getLocation();
        }

        JarInputStream jarStream = null;
        try {
            jarStream = new JarInputStream(new FileInputStream(bundlePath.toFile()), false);
            Manifest manifest = jarStream.getManifest();
            if (manifest == null) {
                return null;
            }
View Full Code Here


        for (IPath path : paths) {
            try {
                IFile ifile = wsroot.getFile(path);
                IPath location = ifile.getLocation();
                if (location != null)
                    files.add(location.toFile());
            } catch (IllegalArgumentException e) {
                System.err.println("### Error processing path: " + path);
                e.printStackTrace();
            }
        }
View Full Code Here

            return bundlePath;

        // Try install location
        if (installLocation != null) {
            IPath installedBundlePath = new Path(installLocation.getURL().getFile()).append(bundlePath);
            if (installedBundlePath.toFile().exists())
                return installedBundlePath;
        }

        // Try config location
        if (configLocation != null) {
View Full Code Here

        }

        // Try config location
        if (configLocation != null) {
            IPath configuredBundlePath = new Path(configLocation.getURL().getFile()).append(bundlePath);
            if (configuredBundlePath.toFile().exists())
                return configuredBundlePath;
        }

        return null;
    }
View Full Code Here

  private String computeTitlePath(IFileEditorInput editorInput) {
    IFile file = editorInput.getFile();
    IPath location = file.getLocation();
    if (location != null) {
      return location.toFile().toString();
    }
    return null;
  }

  /**
 
View Full Code Here

                        if (includedFiles == null) {
                            return false;
                        }
                        for (File includedFile : includedFiles) {
                            IPath location = resource.getLocation();
                            if (location != null && includedFile.equals(location.toFile())) {
                                result.set(true);
                                return false;
                            }
                        }
                    }
View Full Code Here

                    if (includedFiles == null) {
                        return false;
                    }
                    for (File includedFile : includedFiles) {
                        IPath location = resource.getLocation();
                        if (location != null && includedFile.equals(location.toFile())) {
                            result.set(true);
                            return false;
                        }
                    }
                }
View Full Code Here

                        if (includedFiles == null) {
                            return false;
                        }
                        for (File includedFile : includedFiles) {
                            IPath location = resource.getLocation();
                            if (location != null && includedFile.equals(location.toFile())) {
                                result.set(true);
                                return false;
                            }
                        }
                    }
View Full Code Here

                    if (includedFiles == null) {
                        return false;
                    }
                    for (File includedFile : includedFiles) {
                        IPath location = resource.getLocation();
                        if (location != null && includedFile.equals(location.toFile())) {
                            result.set(true);
                            return false;
                        }
                    }
                }
View Full Code Here

        IFolder wsfolder;

        if ((wsfile = root.getFile(path)).exists()) {
            IPath location = wsfile.getLocation();
            if (location != null)
                return location.toFile();
        }

        if ((wsfolder = root.getFolder(path)).exists()) {
            IPath location = wsfolder.getLocation();
            if (location != null)
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.