Bug 122283 [Smoke][Regression][SPM-Linux WS]Item in library can't be used when include library from library explorer
Details: Item in library can't be used when include library from library explorer Step: 1.New a library and Insert a label. 2.Open a report design 3.Open the library exploer in report and use the library 4.Drop the library label from library explorer into layout Actual results: Expection pop up. If use the library from report outline, label can drop in layout succeed.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/UIUtil.java
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;
						}
					}
				}
			}
		}
		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