Bug 66947 'Add to build path' action available on CUs [build path]
RC2 1. Select a CU in the package explorer 2. Invoke 'Add to build path' Error dialog shows up, message printed to log Doesn't seem to make sense to add a CU to the build path... !ENTRY org.eclipse.jdt.ui 4 10001 Jun 14, 2004 16:22:21.355 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [Cannot nest 'org.eclipse.ui.examples.multipageeditor/Eclipse UI Examples MultiPageEditor/org/eclipse/ui/examples/multipageeditor/MessageUtil.java' inside 'org.eclipse.ui.examples.multipageeditor/Eclipse UI Examples MultiPageEditor'. To enable the nesting exclude 'org/' from 'org.eclipse.ui.examples.multipageeditor/Eclipse UI Examples MultiPageEditor'] at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:735) at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2650) at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2666) at org.eclipse.jdt.ui.actions.AddToClasspathAction$1.addToClassPath(AddToClasspathAction.java:134) at org.eclipse.jdt.ui.actions.AddToClasspathAction$1.run(AddToClasspathAction.java:123) at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:34) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3246) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:65) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddToClasspathAction.java
/**
	 * Creates a new <code>AddToClasspathAction</code>. The action requires that
	 * the selection provided by the site's selection provider is of type <code>
	 * org.eclipse.jface.viewers.IStructuredSelection</code>.
	 * 
	 * @param site the site providing context information for this action
	 */
	public AddToClasspathAction(IWorkbenchSite site) {
		super(site);
		setText(ActionMessages.getString("AddToClasspathAction.label")); 
		setToolTipText(ActionMessages.getString("AddToClasspathAction.toolTip")); 
		WorkbenchHelp.setHelp(this, IJavaHelpContextIds.ADD_TO_CLASSPATH_ACTION);
	}
	
	/* (non-Javadoc)
	 * Method declared in SelectionDispatchAction
	 */
	public void selectionChanged(IStructuredSelection selection) {