Bug 166162 Enhance BIRT configuration deployment setting dialog when import BIRT runtime component.[0603]
Description: Enhance BIRT configuration deployment setting dialog when import BIRT runtime component. Build number:2.2.0.v20061129 Steps to reproduce: 1. New a BIRT WTP project. 2. Select it and import BIRT runtime component. Expected result: provide an option to check whether user want to reconfigure web.xml or just keep the original setting untouched. Actual result: User has to input the context parameter values in BIRT configuration deployment setting dialog again and confirm that whether they will rewrite the web.xml file. Error log:N/A
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;
		}
	}
}