substringComboViewer.setInput( new ATEMatchingRulesComboInput() );
String substringName = getModifiedAttributeType().getSubstringOid();
if ( substringName == null )
{
substringComboViewer.setSelection( new StructuredSelection( new NonExistingMatchingRule(
NonExistingMatchingRule.NONE ) ), true );
}
else
{
MatchingRule matchingRule = schemaHandler.getMatchingRule( substringName );
if ( matchingRule != null )
{
substringComboViewer.setSelection( new StructuredSelection( matchingRule ), true );
}
else
{
ATEMatchingRulesComboInput input = ( ATEMatchingRulesComboInput ) substringComboViewer.getInput();
NonExistingMatchingRule nemr = new NonExistingMatchingRule( substringName );
if ( !input.getChildren().contains( nemr ) )
{
input.addChild( nemr );
}
substringComboViewer.refresh();