Bug 316674 Refactor data set editor pages' codes[26569]
Build Identifier: 20100610 Refactor data set editor pages' codes[26569]. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui.data/src/org/eclipse/birt/report/designer/data/ui/dataset/DataSetEditor.java
super.okPressed( );
		try
		{
			DataSetUIUtil.updateColumnCache( this.getHandle( ), false );
		}
		catch ( Exception e )
		{
			ExceptionHandler.handle( e );
			return;
		}
		
		if ( super.rootNode.hasSubNodes( ) )
		{
			PropertyNode[] nodes = rootNode.getSubNodes( );
			for ( int n = 0; n < nodes.length; n++ )
			{
				
				if ( nodes[n].getPage( ) instanceof DataSetParametersPage )
				{
					if ( viewer == null && viewer.getTree( ) == null )
						return;
					DataSetParametersPage page = (DataSetParametersPage) nodes[n].getPage( );
					if ( !page.canFinish( ) && !viewer.getTree( ).isDisposed( ) )
					{
						TreeItem firstNode = viewer.getTree( ).getItems( )[n];
						StructuredSelection select = new StructuredSelection( firstNode.getData( ) );
						viewer.setSelection( select );
						String name = ( (DataSetParametersPage) nodes[n].getPage( ) ).getNoneValuedParameterName( );
						this.setMessage( Messages.getFormattedString( "dataset.editor.error.noInputParameterDefaultValue", 
								new Object[]{