Bug 299152 [Forms] FormEditor isDirty() should consider FormEditor pages
Build Identifier: M20090917-0800 FormEditor's isDirty() method checks all of the IFormPage children and returns dirty if any of them are dirty. Since a FormEditor can contain other FormEditors as pages the isDirty method should return dirty if a child FormEditor is dirty. Reproducible: Always
bundles/org.eclipse.ui.forms/src/org/eclipse/ui/forms/editor/FormEditor.java
} catch (PartInitException e) {
			
		}
		updatePageIndices(index+1);
	}
	/**
	 * Tests whether the editor is dirty by checking all the pages that
	 * implement <code>IFormPage</code>. If none of them is dirty, the method
	 * delegates further processing to <code>super.isDirty()</code>.
	 * 
	 * @return <code>true</code> if any of the pages in the editor are dirty,
	 *         <code>false</code> otherwise.
	 * @since 3.1
	 */
	public boolean isDirty() {
		if (pages != null) {
			for (int i = 0; i < pages.size(); i++) {
				Object page = pages.get(i);
				if (page instanceof IFormPage) {
					IFormPage fpage = (IFormPage) page;
					if (fpage.isDirty())
						return true;
				}
			}
		}
		return super.isDirty();
	}
	
	/**
	 * Commits all dirty pages in the editor. This method should