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
/**
	 * Invoke selectionChanged event
	 * 
	 * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction,
	 *      org.eclipse.jface.viewers.ISelection)
	 */
	public void selectionChanged( IAction action, ISelection selection )
	{
		boolean bEnable = false;
		if ( selection instanceof IStructuredSelection )
		{
			fSelection = (IStructuredSelection) selection;
			bEnable = validateSelected( fSelection );
		}
		( (Action) action ).setEnabled( bEnable );
	}
	/**
	 * check if it is a J2EE Dynamic Web Project
	 */
	protected boolean isValidProject( IProject fProject )
	{
		return J2EEProjectUtilities.isDynamicWebProject( fProject );
	}
	/**
	 * Invoke selectionChanged method to check selected project.
	 */
	protected boolean validateSelected( ISelection selection )
	{
		if ( !( selection instanceof IStructuredSelection ) )
			return false;