Bug 146159 [Regression]Changing font operation doesn't work other than the first time
Description: The first time changing operation can work well. However, Change it again, it won't work. Steps: 1.Insert lable/text to layout or master page 2.Change the font from serif to cursive, it works well 3.Change the font again Result: The action doesn't work Additional infor: build number:200606080632
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/UIUtil.java
*         active.
	 */
	public static IEditorPart getActiveEditor( boolean activePageOnly )
	{
		IWorkbenchWindow window = PlatformUI.getWorkbench( )
				.getActiveWorkbenchWindow( );
		if ( window != null )
		{
			if ( activePageOnly )
			{
				IWorkbenchPage pg = window.getActivePage( );
				if ( pg != null )
				{
					return pg.getActiveEditor( );
				}
			}
			else
			{
				IWorkbenchPage[] pgs = window.getPages( );
				for ( int i = 0; i < pgs.length; i++ )
				{
					IWorkbenchPage pg = pgs[i];
					if ( pg != null )
					{
						IEditorPart editor = pg.getActiveEditor( );
						if ( editor != null )
						{
							return editor;
						}
					}