public IPath getSourceAttachmentPath() { return entry.getSourceAttachmentPath(); }
public IPath getSourceAttachmentPath() { return entry.getSourceAttachmentPath(); }
public IPath getSourceAttachmentPath() { return delegate.getSourceAttachmentPath(); }
/** * Returns whether the source attachments of the given package fragment * root and runtime classpath entry are equal. * * @param root package fragment root * @param entry runtime classpath entry * @return whether the source attachments of the given package fragment * root and runtime classpath entry are equal * @throws JavaModelException if there is a problem with the backing Java model */ private static boolean isSourceAttachmentEqual(IPackageFragmentRoot root, IRuntimeClasspathEntry entry) throws JavaModelException { return equalOrNull(root.getSourceAttachmentPath(), entry.getSourceAttachmentPath()); }
private static boolean isSourceAttachmentEqual(IPackageFragmentRoot root, IRuntimeClasspathEntry entry) throws JavaModelException { IPath entryPath = entry.getSourceAttachmentPath(); if (entryPath == null) { return true; } IPath rootPath = root.getSourceAttachmentPath(); if (rootPath == null) { // entry has a source attachment that the package root does not return false; } return rootPath.equals(entryPath); }
/** * Returns whether the source attachments of the given package fragment * root and runtime classpath entry are equal. * * @param root package fragment root * @param entry runtime classpath entry * @return whether the source attachments of the given package fragment * root and runtime classpath entry are equal * @throws JavaModelException if there is a problem with the backing Java model */ private static boolean isSourceAttachmentEqual(IPackageFragmentRoot root, IRuntimeClasspathEntry entry) throws JavaModelException { return equalOrNull(root.getSourceAttachmentPath(), entry.getSourceAttachmentPath()); }
/** * Returns whether the source attachments of the given package fragment * root and runtime classpath entry are equal. * <p> * NOTE: If the runtime classpath entry's source attachment is not specified, * then it is considered equal. This way, the corresponding package fragment * root is used for source lookup if it has a source attachment or not. * </p> * * @param root package fragment root * @param entry runtime classpath entry * @return whether the source attachments of the given package fragment * root and runtime classpath entry are equal * @throws JavaModelException if there is a problem accessing the given {@link IPackageFragmentRoot} */ private static boolean isSourceAttachmentEqual(IPackageFragmentRoot root, IRuntimeClasspathEntry entry) throws JavaModelException { IPath entryPath = entry.getSourceAttachmentPath(); if (entryPath == null) { return true; } IPath rootPath = root.getSourceAttachmentPath(); if (rootPath == null) { // entry has a source attachment that the package root does not return false; } return rootPath.equals(entryPath); }
/** * Returns whether the source attachments of the given package fragment * root and runtime classpath entry are equal. * <p> * NOTE: If the runtime classpath entry's source attachment is not specified, * then it is considered equal. This way, the corresponding package fragment * root is used for source lookup if it has a source attachment or not. * </p> * * @param root package fragment root * @param entry runtime classpath entry * @return whether the source attachments of the given package fragment * root and runtime classpath entry are equal * @throws JavaModelException if there is a problem accessing the given {@link IPackageFragmentRoot} */ private static boolean isSourceAttachmentEqual(IPackageFragmentRoot root, IRuntimeClasspathEntry entry) throws JavaModelException { IPath entryPath = entry.getSourceAttachmentPath(); if (entryPath == null) { return true; } IPath rootPath = root.getSourceAttachmentPath(); if (rootPath == null) { // entry has a source attachment that the package root does not return false; } return rootPath.equals(entryPath); }
makeRelativePath(location.getSourceAttachmentRootPath(), path, rootPath)); libraryNode.setAttribute(SREConstants.XML_SOURCE_PATH, makeRelativePath(location.getSourceAttachmentPath(), path, rootPath));
case IRuntimeClasspathEntry.VARIABLE: path = entry.getPath(); IPath srcPath = entry.getSourceAttachmentPath(); StringBuffer buf = new StringBuffer(path.toString()); if (srcPath != null) {
case IRuntimeClasspathEntry.VARIABLE: path = entry.getPath(); IPath srcPath = entry.getSourceAttachmentPath(); StringBuffer buf = new StringBuffer(path.toString()); if (srcPath != null) {
boolean source = (entry.getSourceAttachmentPath() != null && !Path.EMPTY.equals(entry.getSourceAttachmentPath())); String key = null; if (external) {
IPath sa1 = getSourceAttachmentPath(); IPath root1 = getSourceAttachmentRootPath(); IPath sa2 = r.getSourceAttachmentPath(); IPath root2 = r.getSourceAttachmentRootPath(); return equal(sa1, sa2) && equal(root1, root2);
IPath sa1 = getSourceAttachmentPath(); IPath root1 = getSourceAttachmentRootPath(); IPath sa2 = r.getSourceAttachmentPath(); IPath root2 = r.getSourceAttachmentRootPath(); return equal(sa1, sa2) && equal(root1, root2);
IPath srcVar = entry.getSourceAttachmentPath(); IPath srcRootPath = null; IPath srcRootVar = entry.getSourceAttachmentRootPath();
IPath srcVar = entry.getSourceAttachmentPath(); IPath srcRootPath = null; IPath srcRootVar = entry.getSourceAttachmentRootPath();