Bug 15380 Add Bookmark action is disabled in the Editor
The Add Bookmark action is provided in the Edit menu but it is disabled on text selections. Text Editors should retarget this action so that it also operates on text selections.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java
}
	
	private void registerSelectionListener(ISelectionProvider provider, ISelectionChangedListener listener) {
		if (fRegisteredSelectionListeners == null)
			fRegisteredSelectionListeners= new ArrayList(12);
		provider.addSelectionChangedListener(listener);
		fRegisteredSelectionListeners.add(listener);
	}
	
	/**
	 * The state of the editor owning this action group has changed. 
	 * This method does nothing if the group's owner isn't an
	 * editor.
	 * <p>
	 * Note: This method is for internal use only. Clients should not call this method.
	 * </p>
	 */
	public void editorStateChanged() {
		Assert.isTrue(fEditorIsOwner);
		fAddImport.update();
		fExternalizeStrings.editorStateChanged();
		fOrganizeImports.editorStateChanged();
		fOverrideMethods.editorStateChanged();
		fAddUnimplementedConstructors.editorStateChanged();
		fAddJavaDocStub.editorStateChanged();
		fSurroundWithTryCatch.editorStateChanged();
		fAddGetterSetter.editorStateChanged();
	}
	/* (non-Javadoc)
	 * Method declared in ActionGroup