Bug 145942 [regression] use library function does not work properly
steps to reproduce: - create a library - publish to resource folder - create a report - use the library - insert -> use library, or - outline -> libraries -> use library - navigate to designer resource folder - select a library - click on open expected behavior: - library is included actual behavior: - error occurred, please refer to attached screen capture
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/actions/ImportLibraryAction.java
import org.eclipse.birt.report.designer.nls.Messages;
import org.eclipse.birt.report.designer.ui.ReportPlugin;
import org.eclipse.birt.report.model.api.LibraryHandle;
import org.eclipse.birt.report.model.api.ModuleHandle;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.SWT;
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" ); 
	public ImportLibraryAction( )
	{
		setText( ACTION_TEXT ); 
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.jface.action.Action#isEnabled()
	 */
	public boolean isEnabled( )
	{
		
		return true;
	}