Bug 172606 Error icon in Library Explorer for multi-extends item.[01]
Description: Error icon in Library Explorer for multi-extends item. Build number:2.1.2.v20070202 Steps to reproduce: 1. New a.rptlibrary and b.rptlibrary. 2. New a table in a.rptlibray. 3. Open b.rptlibray and extends table item in a.rptlibray. 4. Open Library Explore, check table item inside b.rptlibrary. Expected result: Normal item icon before table item. Actual result: Error icon indicate the item exists errors. see attached.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/UIUtil.java
}
			}
		}
		return null;
	}
	/**
	 * Returns current project according to current selection. 1. If current
	 * selection is editPart, get editor input and return associated project. 2.
	 * If current selection is not ediPart, use first selected element, query
	 * from its IAdaptable interface to get associated project. 3. If the above
	 * is not working, get the first accessible project in the current workspace
	 * and return it. 4. If none is accessible, returns null.
	 * 
	 * @return the default project according to current selection.
	 */
	public static IProject getDefaultProject( )
	{
		IWorkbenchWindow benchWindow = PlatformUI.getWorkbench( )
				.getActiveWorkbenchWindow( );
		IWorkbenchPart part = benchWindow.getPartService( ).getActivePart( );
		Object selection = null;
		if ( part instanceof IEditorPart )
		{
			selection = ( (IEditorPart) part ).getEditorInput( );
		}
		else
		{
			ISelection sel = benchWindow.getSelectionService( ).getSelection( );
			if ( ( sel != null ) && ( sel instanceof IStructuredSelection ) )
			{