Bug 121695 "Save as" is always disabled in a library file.
Description: "Save as" is always disabled in a library file. Steps to reproduce: 1. Create a library. 2. Select File>Save as. "Save as" is always grayed out.
UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/internal/ui/editors/FileReportProvider.java
public IPath getSaveAsPath( Object element )
	{
		if ( element instanceof IPathEditorInput )
		{
			IEditorInput input = (IEditorInput) element;
			ModuleHandle handle = SessionHandleAdapter.getInstance( )
					.getReportDesignHandle( );
			SaveReportAsWizardDialog dialog = new SaveReportAsWizardDialog( UIUtil.getDefaultShell( ),
					new SaveReportAsWizard( (ReportDesignHandle) handle, input ) );
			if ( dialog.open( ) == Window.OK )
			{
				return dialog.getResult( );
			}
		}
		return null;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.birt.report.designer.ui.editors.IReportProvider#createNewEditorInput(org.eclipse.core.runtime.IPath)
	 */
	public IEditorInput createNewEditorInput( IPath path )
	{
		File file = new File( path.toOSString( ) );
		try
		{
			if ( file.exists( ) || file.createNewFile( ) )
			{
				return new ReportEditorInput( file );
			}