public IndexBinaryFolder(IContainer folder, IndexManager manager) { super(folder.getFullPath(), manager); this.folder = folder; } public boolean equals(Object o) {
@Override public String toString() { String start = "Binary classpath directory " + this.binaryFolder.getFullPath().toString(); //$NON-NLS-1$ if (this.accessRuleSet == null) return start; return start + " with " + this.accessRuleSet; //$NON-NLS-1$ }
public String toString() { String start = "Binary classpath directory " + this.binaryFolder.getFullPath().toString(); //$NON-NLS-1$ if (this.accessRuleSet == null) return start; return start + " with " + this.accessRuleSet; //$NON-NLS-1$ }
/** * Sets the destination container to move the resources in. * * @param container * the destination */ public void setDestination(IContainer container) { Assert.isNotNull(container); fDestinationPath= container.getFullPath(); }
/** * This is an internal method and is not intended to be invoked or * overridden by clients. */ protected synchronized IResource[] internalGetOutOfSyncDescendants(IContainer resource) { // The parent map contains a set of all out-of-sync children Set<IResource> allChildren = parents.get(resource.getFullPath()); if (allChildren == null) return new IResource[0]; return allChildren.toArray(new IResource[allChildren.size()]); }
public String toString() { return "Source classpath directory " + this.sourceFolder.getFullPath().toString() + //$NON-NLS-1$ " with " + super.toString(); //$NON-NLS-1$ } }
@Override public boolean accept(StepDefinition stepDefinition) { String stepDefinitionLocation = stepDefinition.getSource().getParent().getFullPath().toString(); return stepDefinitionLocation.startsWith(location); } }
public String getText(Object element) { if(element instanceof IContainer) { IContainer c = (IContainer)element; if(c.getType() != IResource.PROJECT && resources.contains(c)) { return c.getFullPath().toString(); } } return workbenchProvider.getText(element); } public Image getImage(Object element) {
public static String getContainer(IProject project, IContainer container) { return (project == container.getProject() ? container.getProjectRelativePath() : container.getFullPath()).toString(); }
public IResource createResourceHandle() { IWorkspaceRoot workspaceRoot = getWorkspace().getRoot(); IPath folderPath = parent.getFullPath().append(name); return workspaceRoot.getFolder(folderPath); }
public IResource createResourceHandle() { IWorkspaceRoot workspaceRoot = parent.getWorkspace().getRoot(); IPath fullPath = parent.getFullPath().append(name); return workspaceRoot.getFile(fullPath); }
@Override public IResource createResourceHandle() { IWorkspaceRoot workspaceRoot = parent.getWorkspace().getRoot(); IPath fullPath = parent.getFullPath().append(name); return workspaceRoot.getFile(fullPath); }
@Override public IResource createResourceHandle() { IWorkspaceRoot workspaceRoot = getWorkspace().getRoot(); IPath folderPath = parent.getFullPath().append(name); return workspaceRoot.getFolder(folderPath); }
@Override public IResource createResourceHandle() { IWorkspaceRoot workspaceRoot= parent.getWorkspace().getRoot(); IPath fullPath= parent.getFullPath().append(name); return workspaceRoot.getFile(fullPath); }
protected boolean isExcludedFromProject(IPath childPath) throws JavaModelException { // answer whether the folder should be ignored when walking the project as a source folder if (childPath.segmentCount() > 2) return false; // is a subfolder of a package for (int j = 0, k = this.sourceLocations.length; j < k; j++) { if (childPath.equals(this.sourceLocations[j].binaryFolder.getFullPath())) return true; if (childPath.equals(this.sourceLocations[j].sourceFolder.getFullPath())) return true; } // skip default output folder which may not be used by any source folder return childPath.equals(this.javaBuilder.javaProject.getOutputLocation()); }
protected boolean isExcludedFromProject(IPath childPath) throws JavaModelException { // answer whether the folder should be ignored when walking the project as a source folder if (childPath.segmentCount() > 2) return false; // is a subfolder of a package for (int j = 0, k = this.sourceLocations.length; j < k; j++) { if (childPath.equals(this.sourceLocations[j].binaryFolder.getFullPath())) return true; if (childPath.equals(this.sourceLocations[j].sourceFolder.getFullPath())) return true; } // skip default output folder which may not be used by any source folder return childPath.equals(this.javaBuilder.javaProject.getOutputLocation()); }
protected IPath makePathAbsolute(IPath target) { if (target.isAbsolute()) return target; return getParent().getFullPath().append(target); }
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 String formatResourceMessage(IResource element) { IContainer parent = element.getParent(); if (parent != null && parent.getType() != IResource.ROOT) return element.getName() + JavaElementLabels.CONCAT_STRING + parent.getFullPath().makeRelative().toString(); else return element.getName(); }
private String formatResourceMessage(IResource element) { IContainer parent = element.getParent(); if (parent != null && parent.getType() != IResource.ROOT) return BasicElementLabels.getResourceName(element.getName()) + JavaElementLabels.CONCAT_STRING + BasicElementLabels.getPathLabel(parent.getFullPath(), false); else return BasicElementLabels.getResourceName(element.getName()); }