/** * @see IRuntimeClasspathEntry#getResource() */ @Override public IResource getResource() { switch (getType()) { case CONTAINER: case VARIABLE: return null; default: return getResource(getPath()); } }
/** * @see IRuntimeClasspathEntry#getResource() */ @Override public IResource getResource() { switch (getType()) { case CONTAINER: case VARIABLE: return null; default: return getResource(getPath()); } }
break; case ARCHIVE : IResource res = getResource(); if (res == null) { node.setAttribute("externalArchive", getPath().toString()); //$NON-NLS-1$
break; case ARCHIVE : IResource res = getResource(); if (res == null) { node.setAttribute("externalArchive", getPath().toString()); //$NON-NLS-1$
/** * Returns the OS path for the given absolute or workspace relative path * @param path the path * @return the OS path */ protected String resolveToOSPath(IPath path) { if (path != null) { IResource res = null; if (path.getDevice() == null) { // if there is no device specified, find the resource res = getResource(path); } if (res == null) { return path.toOSString(); } IPath location = res.getLocation(); if (location != null) { return location.toOSString(); } } return null; }
/** * Returns the OS path for the given absolute or workspace relative path * @param path the path * @return the OS path */ protected String resolveToOSPath(IPath path) { if (path != null) { IResource res = null; if (path.getDevice() == null) { // if there is no device specified, find the resource res = getResource(path); } if (res == null) { return path.toOSString(); } IPath location = res.getLocation(); if (location != null) { return location.toOSString(); } } return null; }
switch (getType()) { case PROJECT : IJavaProject pro = (IJavaProject) JavaCore.create(getResource()); if (pro != null) { try {
switch (getType()) { case PROJECT : IJavaProject pro = (IJavaProject) JavaCore.create(getResource()); if (pro != null) { try {