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/ui/actions/GenerateActionGroup.java
}
		if (subMenu != null)
			menu.appendToGroup(fGroupName, subMenu);
	}
	
	private IMenuManager createEditorSubMenu(IMenuManager mainMenu) {
		IMenuManager result= new MenuManager(ActionMessages.getString("SourceMenu.label")); 
		int added= 0;
		added+= addEditorAction(result, "Comment"); 
		added+= addEditorAction(result, "Uncomment"); 
		added+= addEditorAction(result, "AddBlockComment"); 
		added+= addEditorAction(result, "RemoveBlockComment"); 
		added+= addEditorAction(result, "Format"); 
		added+= addEditorAction(result, "Indent"); 
		result.add(new Separator());
		added+= addAction(result, fOrganizeImports);
		added+= addAction(result, fAddImport);
		result.add(new Separator());
		added+= addAction(result, fOverrideMethods);
		added+= addAction(result, fAddGetterSetter);
		added+= addAction(result, fAddDelegateMethods);
		added+= addAction(result, fAddUnimplementedConstructors);
		added+= addAction(result, fGenerateConstructorUsingFields);
		added+= addAction(result, fAddJavaDocStub);
		result.add(new Separator());		
		added+= addAction(result, fSurroundWithTryCatch);
		if (added == 0)
			result= null;
		return result;
	}