Bug 103927 [build path] External jar Dialog cannot set both Javadoc Location and Java Source Attachment in one iteration
Add an external jar to the project. From the context menu of the jar select properties. Select Javadoc location, browse to the desired location. Select Java Source Attachment. Browse to an external file. Press OK. From the context menu of the jar select properties again. Javadoc location is empty. (At this point it can be entered again without problems)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceAttachmentBlock.java
}
		} else {
			path= new Path(path.lastSegment());
		}
		return new Path(varName).append(path);
	}
	/**
	 * Creates a runnable that sets the source attachment by modifying the project's classpath.
	 */
	public static IRunnableWithProgress getRunnable(final Shell shell, final IClasspathEntry newEntry, final IJavaProject jproject, final IPath containerPath) {
		return new IRunnableWithProgress() {
			public void run(IProgressMonitor monitor) throws InvocationTargetException {				
				try {
					BuildPathSupport.modifyClasspathEntry(shell, newEntry, jproject, containerPath, monitor);
				} catch (CoreException e) {
					throw new InvocationTargetException(e);
				}
			}
		};
	}
	/**
	 * @deprecated Use {@link #getRunnable(Shell, IClasspathEntry, IJavaProject, IPath)}
	 */
	public IRunnableWithProgress getRunnable(final Shell shell) {
		return getRunnable(shell, getNewEntry(), fProject, fContainerPath);
	}	
	
	
}