mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
14.06.2014 2dece15900c587dcc5fcfaf35c2acdbfb026de1f
opendj3-server-dev/src/guitools/org/opends/guitools/controlpanel/ui/MatchingRulePanel.java
@@ -273,19 +273,20 @@
  static LocalizableMessage getTypeValue(MatchingRule matchingRule)
  {
    LocalizableMessage text;
    if (matchingRule instanceof EqualityMatchingRule)
    String matchingRuleName = matchingRule.getClass().getSimpleName().toLowerCase();
    if (matchingRuleName.contains("equality"))
    {
      text = INFO_CTRL_PANEL_INDEX_EQUALITY.get();
    }
    else if (matchingRule instanceof OrderingMatchingRule)
    else if (matchingRuleName.contains("ordering"))
    {
      text = INFO_CTRL_PANEL_INDEX_ORDERING.get();
    }
    else if (matchingRule instanceof SubstringMatchingRule)
    else if (matchingRuleName.contains("substring"))
    {
      text = INFO_CTRL_PANEL_INDEX_SUBSTRING.get();
    }
    else if (matchingRule instanceof ApproximateMatchingRule)
    else if (matchingRuleName.contains("approximate"))
    {
      text = INFO_CTRL_PANEL_INDEX_APPROXIMATE.get();
    }