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
selection = ( (IStructuredSelection) sel ).getFirstElement( );
			}
		}
		if ( selection instanceof IAdaptable )
		{
			IResource resource = (IResource) ( (IAdaptable) selection ).getAdapter( IResource.class );
			if ( resource != null
					&& resource.getProject( ) != null
					&& resource.getProject( ).isAccessible( ) )
			{
				return resource.getProject( );
			}
		}
		IProject[] pjs = ResourcesPlugin.getWorkspace( )
				.getRoot( )
				.getProjects( );
		for ( int i = 0; i < pjs.length; i++ )
		{
			if ( pjs[i].isAccessible( ) )
			{
				return pjs[i];
			}
		}
		return null;
	}
	/**
	 * Returns the default shell used by dialogs
	 * 
	 * @return the active shell of the current display
	 */