Bug 130495 Get rid of SessionHandleAdapter
Now, we use SessionHandleAdapter to keep current active report deisng. That's a bad practive for editor swith and rebuild will cuase lots of problmes. Need find way to replace it.
UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/internal/ui/editors/FileReportProvider.java
public ModuleHandle getReportModuleHandle( Object element )
	{
		return getReportModuleHandle( element, false );
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.ui.editors.IReportProvider#getReportModuleHandle(java.lang.Object,
	 *      boolean)
	 */
	public ModuleHandle getReportModuleHandle( Object element, boolean reset )
	{
		
		if ( element instanceof IPathEditorInput )
		{
			IPath path = ( (IPathEditorInput) element ).getPath( );
			if ( path != null )
			{
				String fileName = path.toOSString( );
				try
				{
					InputStream stream = new FileInputStream( path.toFile( ) );
					if ( fileName.endsWith( IReportEditorContants.LIBRARY_FILE_EXTENTION ) )
					{
						if ( reset )
						{
							SessionHandleAdapter.getInstance( ).init( fileName,
									stream,
									SessionHandleAdapter.LIBRARYFILE,
									true );