| | |
| | | private JLabel lIndexes; |
| | | private JLabel lNoBaseDNsFound; |
| | | |
| | | private final Map<String, SortedSet<AbstractIndexDescriptor>> hmIndexes = |
| | | new HashMap<String, SortedSet<AbstractIndexDescriptor>>(); |
| | | private final Map<String, SortedSet<AbstractIndexDescriptor>> hmIndexes = new HashMap<>(); |
| | | |
| | | /** Constructor of the panel. */ |
| | | public RebuildIndexPanel() |
| | |
| | | gbc.anchor = GridBagConstraints.NORTHWEST; |
| | | add(lIndexes, gbc); |
| | | |
| | | addRemove = new AddRemovePanel<AbstractIndexDescriptor>(AbstractIndexDescriptor.class); |
| | | addRemove = new AddRemovePanel<>(AbstractIndexDescriptor.class); |
| | | addRemove.getAvailableLabel().setText(INFO_CTRL_PANEL_AVAILABLE_INDEXES_LABEL.get().toString()); |
| | | addRemove.getSelectedLabel().setText(INFO_CTRL_PANEL_SELECTED_INDEXES_LABEL.get().toString()); |
| | | |
| | |
| | | setPrimaryValid(lBaseDN); |
| | | setSecondaryValid(addRemove.getSelectedLabel()); |
| | | |
| | | final Set<LocalizableMessage> errors = new LinkedHashSet<LocalizableMessage>(); |
| | | final Set<LocalizableMessage> errors = new LinkedHashSet<>(); |
| | | String baseDN = getSelectedBaseDN(); |
| | | |
| | | if (baseDN == null) |
| | |
| | | { |
| | | ProgressDialog progressDialog = |
| | | new ProgressDialog(Utilities.createFrame(), Utilities.getParentDialog(this), getTitle(), getInfo()); |
| | | Set<String> baseDNs = new HashSet<String>(); |
| | | Set<String> baseDNs = new HashSet<>(); |
| | | baseDNs.add(getSelectedBaseDN()); |
| | | RebuildIndexTask newTask = |
| | | new RebuildIndexTask(getInfo(), progressDialog, baseDNs, addRemove.getSelectedListModel().getData()); |