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/views/actions/ImportLibraryAction.java
import org.eclipse.swt.widgets.FileDialog;
import org.eclipse.ui.IEditorPart;
/**
 * The action used to add library to a report design
 */
public class ImportLibraryAction extends Action
{
	public static final String ID = "UseLibraryAction"; 
	public static final String ACTION_TEXT = Messages.getString( "UseLibraryAction.Text" ); 
	private static final String MSG_DIALOG_TITLE = Messages.getString( "ImportLibraryAction.Title.ImportSuccessfully" ); 
	private static final String MSG_DIALOG_MSG = Messages.getString( "ImportLibraryAction.Message.ImportSuccessfully" ); 
	public ImportLibraryAction( )
	{
		setText( ACTION_TEXT ); 
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jface.action.Action#isEnabled()
	 */
	public boolean isEnabled( )
	{
		
		return true;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.action.IAction#run()
	 */
	public void run( )
	{