/** * Sets the path of the genmodel that will be used when this wizard * is presented to the user. This method has to be invoke before the wizard * pages are added. * @param path The <b>absolute</b> path of the genmodel. */ public void setDefaultPath(IPath path) { defaultPath = path.makeAbsolute(); }
void deploymentDescriptorChanged(final IPath fullPath) { if (fDeploymentDescriptors.containsKey(fullPath.makeAbsolute())) { updateCacheEntry(fullPath); } }
private IPath getRelativePath(IProject project, String outJar) { StringBuffer sb = new StringBuffer(outJar); int index = sb.lastIndexOf(project.getName()); IPath path; if (index > 0) { path = new Path(sb.substring(sb.lastIndexOf(project.getName()))); } else { path = new Path(outJar); } return path.makeAbsolute(); }
@Deprecated @Override public IFile[] findFilesForLocation(IPath location) { return findFilesForLocationURI(URIUtil.toURI(location.makeAbsolute())); }
@Deprecated @Override public IFile[] findFilesForLocation(IPath location) { return findFilesForLocationURI(URIUtil.toURI(location.makeAbsolute())); }
/** * get the contents of a file as a String * * @param filePath - the path to the file * @return the contents, null if the file could not be found */ protected String getContents(String filePath) { IPath path = new Path(filePath); return FileContentCache.getInstance().getContents(path.makeAbsolute()); } }
@Deprecated @Override public IFile[] findFilesForLocation(IPath location) { return findFilesForLocationURI(URIUtil.toURI(location.makeAbsolute())); }
@Deprecated @Override public IContainer[] findContainersForLocation(IPath location) { return findContainersForLocationURI(URIUtil.toURI(location.makeAbsolute())); }
protected static IPath createPath(IProject p, String defaultSourceName) { IPath path = new Path(p.getName()); path = path.append(defaultSourceName); path = path.makeAbsolute(); return path; }
@Deprecated @Override public IContainer[] findContainersForLocation(IPath location) { return findContainersForLocationURI(URIUtil.toURI(location.makeAbsolute())); }
@Deprecated @Override public IContainer[] findContainersForLocation(IPath location) { return findContainersForLocationURI(URIUtil.toURI(location.makeAbsolute())); }
public static IPath handleToResourcePath(final String project, final String handle) { final IPath path= Path.fromPortableString(handle); if (project != null && project.length() > 0 && !path.isAbsolute()) return new Path(project).append(path).makeAbsolute(); return path; }
public static IPath handleToResourcePath(final String project, final String handle) { final IPath path= Path.fromPortableString(handle); if (project != null && project.length() > 0 && !path.isAbsolute()) return new Path(project).append(path).makeAbsolute(); return path; }
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { try { List<IJavaElement> result= addToClasspath(getSelectedElements(), project, newDefaultOutputLocation.makeAbsolute(), removeProjectFromClasspath, removeOldClassFiles, monitor); selectAndReveal(new StructuredSelection(result)); } catch (CoreException e) { throw new InvocationTargetException(e); } } };
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { try { List result= addToClasspath(getSelectedElements(), project, newDefaultOutputLocation.makeAbsolute(), removeProjectFromClasspath, removeOldClassFiles, monitor); selectAndReveal(new StructuredSelection(result)); } catch (CoreException e) { throw new InvocationTargetException(e); } } };
@Override public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { try { List<IJavaElement> result= addToClasspath(getSelectedElements(), project, newDefaultOutputLocation.makeAbsolute(), removeProjectFromClasspath, removeOldClassFiles, monitor); selectAndReveal(new StructuredSelection(result)); } catch (CoreException e) { throw new InvocationTargetException(e); } } };
public void readFromFile(IFile ifile) throws UnsupportedModelException, FileNotFoundException { //// FMComposerManager.getFMComposerExtension(ifile.getProject()); ///// final File file = ifile.getRawLocation().makeAbsolute().toFile(); reader.readFromFile(file); }
public void initialize(IJavaProject project, IClasspathEntry[] currentEntries) { javaProject = project; model = Activator.getDefault().getCentral().getModel(project); basedir = project.getProject().getLocation().makeAbsolute().toFile(); }
public void initialize(IJavaProject project, IClasspathEntry[] currentEntries) { javaProject = project; model = Activator.getDefault().getCentral().getModel(project); basedir = project.getProject().getLocation().makeAbsolute().toFile(); }
private IPath getFilePath() { String filePath= isVariableEntry() ? fVariableFileNameField.getText() : (fWorkspaceRadio.isSelected() ? fWorkspaceFileNameField.getText() : fExternalFileNameField.getText()); return Path.fromOSString(filePath).makeAbsolute(); }