if ( query != null ) { query.setDefinition( txtDefinition.getText( ) ); } else { query = QueryImpl.create( txtDefinition.getText( ) ); query.eAdapters( ).addAll( seriesdefinition.eAdapters( ) ); }  setColor( ); txtDefinition.getParent( ).layout( ); isQueryModified = false;
saveQuery( );
	public void focusLost( FocusEvent e )	{		// Null event is fired by Drop Listener manually		if ( isQueryModified				&& ( e == null || e.widget.equals( txtDefinition ) ) )		{			if ( query != null )			{				query.setDefinition( txtDefinition.getText( ) );			}			else			{				query = QueryImpl.create( txtDefinition.getText( ) );				query.eAdapters( ).addAll( seriesdefinition.eAdapters( ) );			}			// Refresh color from ColorPalette			setColor( );			txtDefinition.getParent( ).layout( );			isQueryModified = false;		}	}