Bug 46394 RCP: Add marker action disabled for Java editor
N20031111 Start fresh workspace and create a class in a Java project. The following actions are disabled: Edit > Add Bookmark... Edit > Add Task... It works in the standard text editor.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditor.java
private JavaModelException probeInputForSource(IEditorInput input) {
		if (input == null)
			return null;
		IClassFileEditorInput classFileEditorInput= (IClassFileEditorInput) input;
		IClassFile file= classFileEditorInput.getClassFile();
			
		try {
			file.getSourceRange();
		} catch (JavaModelException e) {
			return e;			
		}
		return null;
	}
	/**
	 * Checks if the class file input has no source attached. If so, a source attachment form is shown.
	 */
	private void verifyInput(IEditorInput input) throws CoreException {
		if (fParent == null || input == null)
			return;
		IClassFileEditorInput classFileEditorInput= (IClassFileEditorInput) input;
		IClassFile file= classFileEditorInput.getClassFile();
		
		
		if (file.getSourceRange() == null) {
			
			if (fSourceAttachmentForm != null)
				fSourceAttachmentForm.dispose();
			SourceAttachmentForm form= new SourceAttachmentForm(file);
			fSourceAttachmentForm= form.createControl(fParent);
			fStackLayout.topControl= fSourceAttachmentForm;