Text text = DataDefinitionTextManager.getInstance( ) .findText( query ); if ( text != null )
try
	private void checkDataType( Query query )	{		String expression = query.getDefinition( );		Axis axis = null;		for ( EObject o = query; o != null; )		{			o = o.eContainer( );			if ( o instanceof Axis )			{				axis = (Axis) o;				break;			}		}		if ( expression.trim( ).length( ) > 0 && axis != null )		{			boolean b = getDataServiceProvider( ).checkDataType( expression,					axis.getType( ) );			if ( !b )			{				Text text = DataDefinitionTextManager.getInstance( )						.findText( query );				if ( text != null )				{					// Display the text even if it's useless and will be changed					text.setText( query.getDefinition( ) );				}				WizardBase.displayException( new RuntimeException( Messages.getFormattedString( "TaskSelectData.Warning.TypeCheck",//$NON-NLS-1$						new String[]{								expression, axis.getType( ).getName( )						} ) ) );				query.setDefinition( "" ); //$NON-NLS-1$				DataDefinitionTextManager.getInstance( ).updateText( query );			}		}	}