本文整理了Java中org.eclipse.core.runtime.Path.makeAbsolute()
方法的一些代码示例,展示了Path.makeAbsolute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Path.makeAbsolute()
方法的具体详情如下:
包路径:org.eclipse.core.runtime.Path
类名称:Path
方法名:makeAbsolute
暂无
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
protected IPath getPathFromString(String text) {
return new Path(text).makeAbsolute();
}
/**
代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui
protected IPath getPathFromString(String text) {
return new Path(text).makeAbsolute();
}
/**
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide
/**
* 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();
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
/**
* @return Returns the current output location. Note that the path returned must not be valid.
*/
public IPath getOutputLocation() {
return new Path(fBuildPathDialogField.getText()).makeAbsolute();
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
/**
* @return Returns the current output location. Note that the path returned must not be valid.
*/
public IPath getOutputLocation() {
return new Path(fBuildPathDialogField.getText()).makeAbsolute();
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
/**
* @return Returns the current output location. Note that the path returned must not be valid.
*/
public IPath getOutputLocation() {
return new Path(fBuildPathDialogField.getText()).makeAbsolute();
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
@Override
public IPath getFullPath() {
return new Path(getEntryName()).makeAbsolute();
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
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;
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
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;
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
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;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
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;
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
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;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.core.resources
@Override
public IFileStore getChild(String name) {
return EFS.getNullFileSystem().getStore(new Path(name).makeAbsolute());
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.core.resources
@Override
public IFileStore getChild(String name) {
return EFS.getNullFileSystem().getStore(new Path(name).makeAbsolute());
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
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;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
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;
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
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;
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
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;
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.launching
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 };
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.jdt.launching
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 };
}
内容来源于网络,如有侵权,请联系作者删除!