Examples of toFile()


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

        // 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
                e.printStackTrace();
            }
View Full Code Here

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

                setPageComplete(false);
                return;
            }

            IPath projectLocation = ResourcesPlugin.getWorkspace().getRoot().getLocation().append(name);
            if (projectLocation.toFile().exists()) {
                try {
                    // correct casing
                    String canonicalPath = projectLocation.toFile().getCanonicalPath();
                    projectLocation = new Path(canonicalPath);
                } catch (IOException e) {
View Full Code Here

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

            IPath projectLocation = ResourcesPlugin.getWorkspace().getRoot().getLocation().append(name);
            if (projectLocation.toFile().exists()) {
                try {
                    // correct casing
                    String canonicalPath = projectLocation.toFile().getCanonicalPath();
                    projectLocation = new Path(canonicalPath);
                } catch (IOException e) {
                    JavaPlugin.log(e);
                }
View Full Code Here

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

            IPath projectPath = Path.fromOSString(location);

            // if (fLocationGroup.isWorkspaceRadioSelected())
            // projectPath= projectPath.append(fNameGroup.getName());

            if (projectPath.toFile().exists()) {// create from existing source
                if (Platform.getLocation().isPrefixOf(projectPath)) { // create
                                                                      // from
                                                                      // existing
                                                                      // source
                                                                      // in
View Full Code Here

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

                        setErrorMessage("Projects located in the workspace folder must be direct sub folders of the workspace folder");
                        setPageComplete(false);
                        return;
                    }

                    if (!projectPath.toFile().exists()) {
                        setErrorMessage("The selected existing source location in the workspace root does not exist");
                        setPageComplete(false);
                        return;
                    }
                }
View Full Code Here

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

  private static File getTemplateFile() {
    IPath path= PerlEditorPlugin.getDefault().getStateLocation();
    path= path.append(TEMPLATE_FILE);
   
    return path.toFile();
  }
}
View Full Code Here

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

        // a resource outside the workspace as well, in particular
        // point to dependency jars outside of the
        // workspace. All these cases must be handled.
        IResource workspaceResource = null;
        IPath resourcePath = new Path(localResourceLocation);
        File publishableFile = resourcePath.toFile();

        // First see if it is a full path to an existing file.
        if (projectPath != null && publishableFile != null
            && publishableFile.exists()) {
View Full Code Here

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

        // a resource outside the workspace as well, in particular
        // point to dependency jars outside of the
        // workspace. All these cases must be handled.
        IResource workspaceResource = null;
        IPath resourcePath = new Path(localResourceLocation);
        File publishableFile = resourcePath.toFile();

        // First see if it is a full path to an existing file.
        if (projectPath != null && publishableFile != null
            && publishableFile.exists()) {
View Full Code Here

Examples of org.eclipse.sapphire.modeling.Path.toFile()

            {
                final Path absolutePath = property.service( RelativePathService.class ).convertToAbsolute( relativePath );
               
                if( absolutePath != null )
                {
                    final File absoluteFile = absolutePath.toFile();
                   
                    if( absoluteFile.exists() && absoluteFile.isFile() )
                    {
                        return true;
                    }
View Full Code Here

Examples of org.jitterbit.integration.client.entity.settings.FileResource.toFile()

        synchronized (this) {
            if (info != null && info.contains(fileId)) {
                String name = DataFileName.fromIdentifier(fileId);
                FileResource resource = rc.getFileResource(tx, name);
                if (resource.exists()) {
                    return new TransformationDataFileImpl(fileId, resource.toFile());
                }
            }
        }
        return TransformationDataFile.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.