Bug 316695 Refactor data set editor pages' codes[26568]
Build Identifier: 20100610 Refactor data set editor pages' codes[26568]. Reproducible: Always
UI/org.eclipse.birt.report.designer.ui.data/src/org/eclipse/birt/report/designer/data/ui/dataset/DataSetParametersPage.java
* 
		 * @see org.eclipse.birt.report.designer.data.ui.dataset.
		 * PropertyHandleInputDialog#validateSyntax(java.lang.Object)
		 */
		protected IStatus validateSyntax( Object structureOrHandle )
		{
			
			if ( !isUniqueName( ) )
				return getMiscStatus( IStatus.ERROR,
						Messages.getString( "dataset.editor.error.duplicateParameterName" ) ); 
			
			if ( isBlankProperty( dataSetParamName.getText( ) ) )
				return getBlankPropertyStatus( ParameterPageUtil.dialogLabels[0] );
			
			if ( checkParamDataType( ) )
			{
				return getMiscStatus( IStatus.WARNING,
						Messages.getString( "DataSetParameterPage.warning.UnmatchedParamDataType" ) ); 
			}
			return getOKStatus( );
		}
		/**
		 * Indicates whether the linked report parameter data type should be
		 * checked
		 * 
		 * @return
		 */
		private boolean checkParamDataType( )
		{
			return linkToSalarParameter != null