Examples of toFile()


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

                    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

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

                        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

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

                    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

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

        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

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

        }

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

        return path.toFile();
    }
View Full Code Here

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

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

                        IPath location = delta.getResource().getLocation();
                        if (location == null) {
                            System.out.println("Cannot convert resource to file: " + delta.getResource());
                        } else {
                            File file = location.toFile();
                            File parent = file.getParentFile();
                            boolean parentIsWorkspace = parent.equals(getWorkspace().getBase());

                            // file
                            // /development/osgi/svn/build/org.osgi.test.cases.distribution/bnd.bnd
View Full Code Here

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

                            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

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

        IPath location = file.getLocation();
        if (location == null)
            return;

        final AnalyseBundleResolutionJob job = new AnalyseBundleResolutionJob(Messages.BundleCalculatedImportsPart_jobAnalyse, new File[] {
            location.toFile()
        });
        final Display display = tree.getDisplay();
        job.addJobChangeListener(new JobChangeAdapter() {
            @Override
            public void done(IJobChangeEvent event) {
View Full Code Here

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

        if (existingProject.exists())
            return new Status(IStatus.ERROR, Plugin.PLUGIN_ID, 0, MessageFormat.format("Project \"{0}\" already exists.", projectName), null);

        // Find existing project at that location and check if name matches
        IPath projectLocation = ResourcesPlugin.getWorkspace().getRoot().getLocation().append(projectName);
        if (projectLocation.toFile().exists()) {
            try {
                String path = projectLocation.toFile().getCanonicalPath();
                projectLocation = new Path(path);
            } catch (IOException e) {
                // TODO Auto-generated catch block
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.