| | |
| | | import java.awt.event.MouseAdapter; |
| | | import java.awt.event.MouseEvent; |
| | | import java.util.ArrayList; |
| | | import java.util.Comparator; |
| | | import java.util.SortedSet; |
| | | import java.util.TreeSet; |
| | | |
| | |
| | | |
| | | import org.opends.guitools.controlpanel.event.ConfigurationChangeEvent; |
| | | import org.opends.guitools.controlpanel.ui.components.TitlePanel; |
| | | import org.opends.guitools.controlpanel.util.LowerCaseComparator; |
| | | import org.opends.guitools.controlpanel.util.Utilities; |
| | | import org.opends.messages.Message; |
| | | import org.opends.messages.MessageBuilder; |
| | |
| | | |
| | | type.setText(getTypeValue(attr).toString()); |
| | | |
| | | SortedSet<String> requiredByOcs = new TreeSet<String>(); |
| | | Comparator<String> lowerCaseComparator = new LowerCaseComparator(); |
| | | SortedSet<String> requiredByOcs = new TreeSet<String>(lowerCaseComparator); |
| | | for (ObjectClass oc : schema.getObjectClasses().values()) |
| | | { |
| | | if (oc.getRequiredAttributeChain().contains(attr)) |
| | |
| | | model.addElement(oc); |
| | | } |
| | | |
| | | SortedSet<String> optionalByOcs = new TreeSet<String>(); |
| | | SortedSet<String> optionalByOcs = new TreeSet<String>(lowerCaseComparator); |
| | | for (ObjectClass oc : schema.getObjectClasses().values()) |
| | | { |
| | | if (oc.getOptionalAttributeChain().contains(attr)) |