protected IPath getPathFromString(String text) { return new Path(text).makeAbsolute(); } /**
protected IPath getPathFromString(String text) { return new Path(text).makeAbsolute(); } /**
/** * Get a path from the supplied text widget. * @return org.eclipse.core.runtime.IPath */ protected IPath getPathFromText(Text textField) { String text = textField.getText(); //Do not make an empty path absolute so as not to confuse with the root if (text.length() == 0) { return new Path(text); } return (new Path(text)).makeAbsolute(); }
/** * @return Returns the current output location. Note that the path returned must not be valid. */ public IPath getOutputLocation() { return new Path(fBuildPathDialogField.getText()).makeAbsolute(); }
/** * @return Returns the current output location. Note that the path returned must not be valid. */ public IPath getOutputLocation() { return new Path(fBuildPathDialogField.getText()).makeAbsolute(); }
/** * @return Returns the current output location. Note that the path returned must not be valid. */ public IPath getOutputLocation() { return new Path(fBuildPathDialogField.getText()).makeAbsolute(); }
@Override public IPath getFullPath() { return new Path(getEntryName()).makeAbsolute(); }
private static EditFilterWizard newEditFilterWizard(CPListElement element, List<CPListElement> existingElements, String outputLocation) { CPListElement[] existing= existingElements.toArray(new CPListElement[existingElements.size()]); EditFilterWizard result = new EditFilterWizard(existing, element, new Path(outputLocation).makeAbsolute()); result.setDoFlushChange(false); return result; }
private static EditFilterWizard newEditFilterWizard(CPListElement element, List/*<CPListElement>*/ existingElements, String outputLocation) { CPListElement[] existing= (CPListElement[])existingElements.toArray(new CPListElement[existingElements.size()]); EditFilterWizard result = new EditFilterWizard(existing, element, new Path(outputLocation).makeAbsolute()); result.setDoFlushChange(false); return result; }
private AddSourceFolderWizard newSourceFolderWizard(CPListElement element, CPListElement[] existing, String outputLocation, IContainer parent) { AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, element, new Path(outputLocation).makeAbsolute(), false, true, false, false, false, parent); wizard.setDoFlushChange(false); return wizard; }
private AddSourceFolderWizard newSourceFolderWizard(CPListElement element, CPListElement[] existing, String outputLocation, IContainer parent) { AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, element, new Path(outputLocation).makeAbsolute(), false, true, false, false, false, parent); wizard.setDoFlushChange(false); return wizard; }
private AddSourceFolderWizard newSourceFolderWizard(CPListElement element, CPListElement[] existing, String outputLocation, IContainer parent) { AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, element, new Path(outputLocation).makeAbsolute(), false, true, false, false, false, parent); wizard.setDoFlushChange(false); return wizard; }
@Override public IFileStore getChild(String name) { return EFS.getNullFileSystem().getStore(new Path(name).makeAbsolute()); }
@Override public IFileStore getChild(String name) { return EFS.getNullFileSystem().getStore(new Path(name).makeAbsolute()); }
private static AddSourceFolderWizard newSourceFolderWizard(CPListElement element, List/*<CPListElement>*/ existingElements, String outputLocation, boolean newFolder) { CPListElement[] existing= (CPListElement[])existingElements.toArray(new CPListElement[existingElements.size()]); AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, element, new Path(outputLocation).makeAbsolute(), false, newFolder, newFolder, newFolder?CPListElement.isProjectSourceFolder(existing, element.getJavaProject()):false, newFolder); wizard.setDoFlushChange(false); return wizard; }
private static AddSourceFolderWizard newSourceFolderWizard(CPListElement element, List<CPListElement> existingElements, String outputLocation, boolean newFolder) { CPListElement[] existing= existingElements.toArray(new CPListElement[existingElements.size()]); AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, element, new Path(outputLocation).makeAbsolute(), false, newFolder, newFolder, newFolder?CPListElement.isProjectSourceFolder(existing, element.getJavaProject()):false, newFolder); wizard.setDoFlushChange(false); return wizard; }
private static AddSourceFolderWizard newLinkedSourceFolderWizard(CPListElement element, List<CPListElement> existingElements, String outputLocation, boolean newFolder) { CPListElement[] existing= existingElements.toArray(new CPListElement[existingElements.size()]); AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, element, new Path(outputLocation).makeAbsolute(), true, newFolder, newFolder, newFolder?CPListElement.isProjectSourceFolder(existing, element.getJavaProject()):false, newFolder); wizard.setDoFlushChange(false); return wizard; }
private static AddSourceFolderWizard newLinkedSourceFolderWizard(CPListElement element, List/*<CPListElement>*/ existingElements, String outputLocation, boolean newFolder) { CPListElement[] existing= (CPListElement[])existingElements.toArray(new CPListElement[existingElements.size()]); AddSourceFolderWizard wizard= new AddSourceFolderWizard(existing, element, new Path(outputLocation).makeAbsolute(), true, newFolder, newFolder, newFolder?CPListElement.isProjectSourceFolder(existing, element.getJavaProject()):false, newFolder); wizard.setDoFlushChange(false); return wizard; }
private IRuntimeClasspathEntry[] resolveRuntimeClasspathEntry(IRuntimeClasspathEntry entry) throws CoreException{ String variableString = ((VariableClasspathEntry)entry).getVariableString(); String strpath = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(variableString); IPath path = new Path(strpath).makeAbsolute(); IRuntimeClasspathEntry archiveEntry = JavaRuntime.newArchiveRuntimeClasspathEntry(path); return new IRuntimeClasspathEntry[] { archiveEntry }; }
private IRuntimeClasspathEntry[] resolveRuntimeClasspathEntry(IRuntimeClasspathEntry entry) throws CoreException{ String variableString = ((VariableClasspathEntry)entry).getVariableString(); String strpath = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution(variableString); IPath path = new Path(strpath).makeAbsolute(); IRuntimeClasspathEntry archiveEntry = JavaRuntime.newArchiveRuntimeClasspathEntry(path); return new IRuntimeClasspathEntry[] { archiveEntry }; }