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/JavaEditor.java
return;
				}
				if (matches == null || matches.isEmpty())
					return;
				
				if (isCancelled())
					return;
				
				if (isCancelled())
					return;
				
				ITextViewer textViewer= getViewer(); 
				if (textViewer == null)
					return;
				
				IDocument document= textViewer.getDocument();
				if (document == null)
					return;
				
				IDocumentProvider documentProvider= getDocumentProvider();
				if (documentProvider == null)
					return;
				
				IAnnotationModel annotationModel= documentProvider.getAnnotationModel(getEditorInput());
				if (annotationModel == null)
					return;
				
				
				Map annotationMap= new HashMap(matches.size());
				for (Iterator each= matches.iterator(); each.hasNext();) {