Bug 167389 Perspective should switch to ReportDesign when new a library.[0603]
Description: Perspective should switch to ReportDesign when new a library in BIRT Web Project. Build number:2.2.0.v20061211 Steps to reproduce: 1. New a BIRT Web Project. 2. Select the project and right click to new a library file. Expected result: Perspective switch to Report Design as new a report and template do. Actual result: Perspective stayed at J2EE. Error log:N/A
UI/org.eclipse.birt.report.designer.ui.lib/src/org/eclipse/birt/report/designer/ui/wizards/NewLibraryWizard.java
{
						if ( !validDuplicate( NEW_REPORT_FILE_NAME_PREFIX,
								NEW_REPORT_FILE_EXTENSION,
								UNIQUE_COUNTER,
								pjs[i] ) )
						{
							UNIQUE_COUNTER++;
							goon = true;
							break;
						}
					}
				}
			}
			if ( UNIQUE_COUNTER == 0 )
			{
				return NEW_REPORT_FILE_NAME;
			}
			return NEW_REPORT_FILE_NAME_PREFIX + "_" 
					+ UNIQUE_COUNTER + NEW_REPORT_FILE_EXTENSION; 
		}
		else
		{
			String extension = NEW_REPORT_FILE_EXTENSION;
			String path = Platform.getLocation( ).toOSString();
			String name = NEW_REPORT_FILE_NAME_PREFIX + NEW_REPORT_FILE_EXTENSION;
			int count = 0;
			File file;
			file = new File( path, name );
			while ( file.exists( ) )
			{