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
public void editorStateChanged() {
		Assert.isTrue(fEditorIsOwner);
		fAddImport.update();
		fExternalizeStrings.editorStateChanged();
		fOrganizeImports.editorStateChanged();
		fOverrideMethods.editorStateChanged();
		fAddUnimplementedConstructors.editorStateChanged();
		fAddJavaDocStub.editorStateChanged();
		fSurroundWithTryCatch.editorStateChanged();
	}
	/* (non-Javadoc)
	 * Method declared in ActionGroup
	 */
	public void fillActionBars(IActionBars actionBar) {
		super.fillActionBars(actionBar);
		setGlobalActionHandlers(actionBar);
	}
	
	/* (non-Javadoc)
	 * Method declared in ActionGroup
	 */
	public void fillContextMenu(IMenuManager menu) {
		super.fillContextMenu(menu);
		IMenuManager target= menu;
		IMenuManager generateMenu= null;
		if (fEditorIsOwner) {
			generateMenu= new MenuManager(ActionMessages.getString("SourceMenu.label")); 
			generateMenu.add(new GroupMarker(fGroupName));
			target= generateMenu;
		}