inProcessing =1; if(selection != comboBox.getSelectionIndex( )) { markDirty(); }  selection = comboBox.getSelectionIndex( ); Object newValue=null; if(selection == -1) { newValue = comboBox.getText(); } else { newValue = comboBox.getItem(selection); }  if ( newValue != null ) { boolean newValidState = isCorrect( newValue ); if ( newValidState ) { doSetValue(newValue); markDirty( ); } else { } } fireApplyEditorValue();
inProcessing = 1; doValueChanged(); fireApplyEditorValue( );
	void applyEditorValueAndDeactivate( )	{		inProcessing =1;		if(selection != comboBox.getSelectionIndex( ))		{			markDirty();		}				//	must set the selection before getting value		selection = comboBox.getSelectionIndex( );		Object newValue=null;		if(selection == -1)		{			newValue = comboBox.getText();		}		else		{			newValue = comboBox.getItem(selection);		}				if ( newValue != null )		{			boolean newValidState = isCorrect( newValue );			if ( newValidState )			{				doSetValue(newValue);				markDirty( );			}			else			{			}		}		fireApplyEditorValue();		deactivate( );		inProcessing =0;	}