Bug 163749 Import BIRT runtime package to wtp will leave old birt files.
Description: Import BIRT runtime package to wtp will leave old birt files. Steps to reproduce: Prepare two birt builds. 1. Create a new BIRT Web Project with one build. 2. Use another build to open the same workspace, select the project and click Business Inteligent and Reporting Tools->Import BIRT runtime component. Expected result: Old birt runtime package will be replaced with new runtime package. Actual result: Old birt plugins were kept and new birt jar files are imported. e.g. org.eclipse.birt.report.engine_2.2.0.v20061101-0630.jar org.eclipse.birt.report.engine_2.2.0.v20061107-0635.jar
viewer/org.eclipse.birt.integration.wtp.ui/src/org/eclipse/birt/integration/wtp/ui/internal/actions/ImportBirtRuntimeAction.java
BirtWTPMessages.BIRTOverwriteQuery_message, file );
					String[] options = {IDialogConstants.YES_LABEL,
							IDialogConstants.NO_LABEL,
							IDialogConstants.YES_TO_ALL_LABEL,
							IDialogConstants.CANCEL_LABEL};
					MessageDialog dialog = new MessageDialog( shell, title,
							null, msg, MessageDialog.QUESTION, options, 0 );
					result[0] = dialog.open( );
				}
			} );
			return result[0];
		}
		/**
		 * wait to query overwrite result. If has selected ALL, always return
		 * ALL.
		 */
		public String queryOverwrite( String file )
		{
			if ( isALL )
				return ALL;
			String[] returnCodes = {YES, NO, ALL, CANCEL};
			int returnVal = openDialog( file );
			String result = returnVal < 0 ? CANCEL : returnCodes[returnVal];
			
			isALL = result.equalsIgnoreCase( ALL ) ? true : false;
			return result;
		}
	}
}