| | |
| | | public void okClicked() |
| | | { |
| | | String struct = (String) structural.getSelectedItem(); |
| | | TreeSet<String> aux = new TreeSet<String>(auxiliary.getSelectedListModel().getData()); |
| | | TreeSet<String> aux = new TreeSet<>(auxiliary.getSelectedListModel().getData()); |
| | | aux.add("top"); |
| | | ObjectClassValue newValue = new ObjectClassValue(struct, aux); |
| | | valueChanged = !newValue.equals(value); |
| | |
| | | final Schema schema = ev.getNewDescriptor().getSchema(); |
| | | if (schema != null) |
| | | { |
| | | final SortedSet<String> auxiliaryOcs = new TreeSet<String>(); |
| | | final SortedSet<String> structuralOcs = new TreeSet<String>(); |
| | | final SortedSet<String> auxiliaryOcs = new TreeSet<>(); |
| | | final SortedSet<String> structuralOcs = new TreeSet<>(); |
| | | for (ObjectClass oc : schema.getObjectClasses().values()) |
| | | { |
| | | if (oc.getObjectClassType() == ObjectClassType.AUXILIARY) |
| | |
| | | } |
| | | else |
| | | { |
| | | currentAux = new TreeSet<String>(); |
| | | currentAux = new TreeSet<>(); |
| | | } |
| | | SortableListModel<String> availableListModel = |
| | | auxiliary.getAvailableListModel(); |
| | |
| | | gbc.weightx = 1.0; |
| | | gbc.weighty = 1.0; |
| | | gbc.fill = GridBagConstraints.BOTH; |
| | | auxiliary = new AddRemovePanel<String>(String.class); |
| | | auxiliary = new AddRemovePanel<>(String.class); |
| | | gbc.insets.left = 30; |
| | | add(auxiliary, gbc); |
| | | } |