Bug 31999 Error when opening editor on class file not hosted in a Java project
I20030214 - create Simple project - create a file A.class - open it observe: you get an error saying that Simple doesn't exist.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditor.java
IClasspathEntry entry= root.getRawClasspathEntry();	
				IPath containerPath= null;
				IJavaProject jproject= root.getJavaProject();
				
				if (entry == null || !root.isArchive()) {
					createLabel(composite, JavaEditorMessages.getFormattedString("SourceAttachmentForm.message.noSource", fFile.getElementName())); 
					return;
				}
				if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
					containerPath= entry.getPath();
					entry= SourceAttachmentDialog.getClasspathEntryToEdit(jproject, containerPath, root.getPath());
					if (entry == null) {
						IClasspathContainer container= JavaCore.getClasspathContainer(entry.getPath(), root.getJavaProject());							
						String containerName= container == null ? entry.getPath().toString() : container.getDescription();
						createLabel(composite, JavaEditorMessages.getFormattedString("SourceAttachmentForm.message.containerEntry", containerName));  
						return;
					}
				}
				Button button;
				IPath path= entry.getSourceAttachmentPath();			
				if (path == null || path.isEmpty()) {			
					createLabel(composite, JavaEditorMessages.getFormattedString("SourceAttachmentForm.message.noSourceAttachment", root.getElementName())); 
					createLabel(composite, JavaEditorMessages.getString("SourceAttachmentForm.message.pressButtonToAttach")); 
					createLabel(composite, null);
					button= createButton(composite, JavaEditorMessages.getString("SourceAttachmentForm.button.attachSource"));		 
				} else {
					createLabel(composite, JavaEditorMessages.getFormattedString("SourceAttachmentForm.message.noSourceInAttachment", fFile.getElementName())); 
					createLabel(composite, JavaEditorMessages.getString("SourceAttachmentForm.message.pressButtonToChange")); 
					createLabel(composite, null);
					button= createButton(composite, JavaEditorMessages.getString("SourceAttachmentForm.button.changeAttachedSource"));