@Override public IPath getPath() { return new Path(JavaCore.USER_LIBRARY_CONTAINER_ID).append(this.name); }
/** * @see org.eclipse.jdt.internal.launching.StandardVMType#getDefaultSystemLibrary(java.io.File) */ @Override protected IPath getDefaultSystemLibrary(File installLocation) { return new Path(installLocation.getPath()).append("lib").append("classes.zip"); //$NON-NLS-2$ //$NON-NLS-1$ }
/** * @return the directory where to create the Repository (with operating * system specific path separators) */ public String getDirectory() { IPath path = new Path(directoryText.getText()).append(nameText.getText()); return path.toOSString(); }
/** * @return the location (path) of the entry */ public IPath getLocation() { IPath absolutePath = new Path(repository.getWorkTree().getAbsolutePath()).append(path); return absolutePath; }
/** * @see org.eclipse.jdt.internal.launching.StandardVMType#getDefaultSystemLibrary(java.io.File) */ @Override protected IPath getDefaultSystemLibrary(File installLocation) { return new Path(installLocation.getPath()).append("lib").append("classes.zip"); //$NON-NLS-2$ //$NON-NLS-1$ }
@Override IPath buildChildPath(IPath parent, String key) { IPath nextPath = Path.EMPTY.append(parent); nextPath.setDevice(key); return nextPath; }
@Override IPath buildChildPath(IPath parent, String key) { IPath nextPath = Path.EMPTY.append(parent); nextPath.setDevice(key); return nextPath; }
public static String getResolvedResourceLocation(String base, String resource, Bundle bundle) { // quick exits. if (resource == null) return null; String fullResource = new Path(base).append(resource).toString(); String resolvedResource = getResolvedResourceLocation(fullResource, bundle, true); if (resolvedResource.equals(fullResource)) // return resource as is when the resource does not exist. return resource; return resolvedResource; }
@Override public IFileStore getFileStore(IPath path) { return new LocalFile(new Path(file.getPath()).append(path).toFile()); }
protected final IPath getLinkedPath(File archiveFile, String linkedPathVariable) throws CoreException { if (linkedPathVariable == null || linkedPathVariable.length() == 0) return new Path(archiveFile.getAbsolutePath()); else { createLinkedPathVariable(linkedPathVariable, archiveFile.getParentFile()); return new Path(linkedPathVariable).append(archiveFile.getName()); } }
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; }
/** * Get the java output folder for the receiver, in the form of /project/ <output folder> * * @return java.lang.String */ public String getFullJavaOutputPath() { return Path.ROOT.append(getProjectPath()).append(getJavaOutputPath()).toString(); }
/** * @return the {@link IPath} to the filters file */ IPath getFilterFilePath(boolean includeproject) { if (includeproject) { IPath path = fProject.getPath(); return path.append(FilterStore.SETTINGS_FOLDER).append(IApiCoreConstants.API_FILTERS_XML_NAME); } return new Path(FilterStore.SETTINGS_FOLDER).append(IApiCoreConstants.API_FILTERS_XML_NAME); }
private IPath getProjectPath() { String projName = (String)getProperty(FACET_PROJECT_NAME); IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projName); if (project.exists()){ return project.getLocation(); } IDataModel projModel = (IDataModel)getProperty(MASTER_PROJECT_DM); if (projModel.getBooleanProperty(IProjectCreationPropertiesNew.USE_DEFAULT_LOCATION)){ return new Path(projModel.getStringProperty(IProjectCreationPropertiesNew.PROJECT_LOCATION)).append(projName); } return new Path(projModel.getStringProperty(IProjectCreationPropertiesNew.USER_DEFINED_LOCATION)).append(projName); }
/** * Creates the specified image descriptor and registers it */ private void createImageDescriptor(String id, ImageRegistry reg) { URL url = FileLocator.find(getBundle(), new Path(ICON_PATH).append(id), null); ImageDescriptor desc = ImageDescriptor.createFromURL(url); reg.put(id, desc); }
private static IPath getRootPath(IPath path, String definingPluginId) { IPluginModelBase model = PluginRegistry.findModel(definingPluginId); if (model != null && model.getInstallLocation() != null) { IPath newPath = new Path(model.getInstallLocation()).append(path); IWorkspaceRoot root = PDEPlugin.getWorkspace().getRoot(); IContainer container = root.getContainerForLocation(newPath); if (container != null) return container.getFullPath(); } return path; }
private void chooseVariablePressed() { String variable= getVariable(); ChooseVariableDialog dialog= new ChooseVariableDialog(getShell(), variable); if (dialog.open() == Window.OK) { IPath newPath= new Path(dialog.getSelectedVariable()).append(getPathExtension()); setText(newPath.toString()); } }
private void chooseVariablePressed() { String variable= getVariable(); ChooseVariableDialog dialog= new ChooseVariableDialog(getShell(), variable); if (dialog.open() == Window.OK) { IPath newPath= new Path(dialog.getSelectedVariable()).append(getPathExtension()); setText(newPath.toString()); } }
private void chooseVariablePressed() { String variable= getVariable(); ChooseVariableDialog dialog= new ChooseVariableDialog(getShell(), variable); if (dialog.open() == Window.OK) { IPath newPath= new Path(dialog.getSelectedVariable()).append(getPathExtension()); setText(newPath.toString()); } }