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
private int fCount;
		private IDocument fDocument;
		private ITextSelection fSelection;
		private boolean fCancelled= false;
		
		public OccurrencesFinder(int count, IDocument document, ITextSelection selection) {
			fCount= count;
			fDocument= document;
			fSelection= selection;
			fDocument.addDocumentListener(this);
		}
		
		private boolean isCancelled() {
			return fCount != fComputeCount || fCancelled;
		}
		
		/*
		 * @see java.lang.Runnable#run()