Bug 5804 Bug in ClassFileEditor.getCorrespondingElement
protected IJavaElement getCorrespondingElement(IJavaElement element) { IJavaElement parent= JavaModelUtil.findParentOfKind(element, IJavaElement.CLASS_FILE); return (parent == this ? element : null); } 'this' is a ClassFileEditor, so parent will never be 'this'
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditor.java
throw new PartInitException(JavaEditorMessages.getString("ClassFileEditor.error.invalid_input_message")); 
			
		super.init(site, input);
	}
	
	/**
	 * @see IEditorPart#saveState(IMemento)
	 */
	public void saveState(IMemento memento) {
	}
		
	/**
	 * @see AbstractTextEditor#editorContextMenuAboutToShow
	 */
	public void editorContextMenuAboutToShow(IMenuManager menu) {
		
		super.editorContextMenuAboutToShow(menu);
		
		if (getEditorInput() instanceof IClassFileEditorInput) {
			
			IClassFileEditorInput input= (IClassFileEditorInput) getEditorInput();
			IClassFile file= input.getClassFile();
			
			try {
				if (file.getSource() != null)
					addAction(menu, ITextEditorActionConstants.GROUP_ADD, "AddBreakpoint"); 
			} catch (JavaModelException x) {
				
			}
		}