Bug 17598 Source->Generate Getter and Setter enabled for read only file
F1 This action is enabled for read-only files. Executing it shows a dialog saying that the file is read-only. The action should be disabled since all other source actions are disabled as well.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java
int added= 0;
		if (fEditorIsOwner)
			added+= appendToGroup(target, fAddImport);
		added+= appendToGroup(target, fOrganizeImports);
		if (fEditorIsOwner)
			added+= appendToGroup(target, fSurroundWithTryCatch);
		added+= appendToGroup(target, fOverrideMethods);
		added+= appendToGroup(target, fAddGetterSetter);
		added+= appendToGroup(target, fAddUnimplementedConstructors);
		added+= appendToGroup(target, fAddJavaDocStub);
		added+= appendToGroup(target, fAddBookmark);
		if (fEditorIsOwner)
			added+= appendToGroup(target, fExternalizeStrings);
		if (generateMenu != null && added > 0)
			menu.appendToGroup(fGroupName, generateMenu);
	}
	/* (non-Javadoc)
	 * Method declared in ActionGroup
	 */
	public void dispose() {
		if (fRegisteredSelectionListeners != null) {
			ISelectionProvider provider= fSite.getSelectionProvider();
			for (Iterator iter= fRegisteredSelectionListeners.iterator(); iter.hasNext();) {
				ISelectionChangedListener listener= (ISelectionChangedListener) iter.next();
				provider.removeSelectionChangedListener(listener);
			}
		}
		super.dispose();
	}