| | |
| | | import org.opends.guitools.controlpanel.ui.nodes.DndBrowserNodes; |
| | | import org.opends.guitools.controlpanel.util.BackgroundTask; |
| | | import org.opends.guitools.controlpanel.util.Utilities; |
| | | import org.opends.messages.Message; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.opends.server.types.DN; |
| | | import org.opends.server.types.OpenDsException; |
| | | import org.opends.server.util.ServerConstants; |
| | |
| | | */ |
| | | public void okClicked() |
| | | { |
| | | final ArrayList<Message> errors = new ArrayList<Message>(); |
| | | final ArrayList<LocalizableMessage> errors = new ArrayList<LocalizableMessage>(); |
| | | BackgroundTask<Void> worker = new BackgroundTask<Void>() |
| | | { |
| | | /** |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public Message getTitle() |
| | | public LocalizableMessage getTitle() |
| | | { |
| | | return INFO_CTRL_PANEL_ADD_TO_GROUP_TITLE.get(); |
| | | } |
| | |
| | | INFO_CTRL_PANEL_ADD_TO_GROUP_ENTRIES_LABEL.get()); |
| | | add(l, gbc); |
| | | gbc.insets.top = 5; |
| | | entries = Utilities.createNonEditableTextArea(Message.EMPTY, 6, 40); |
| | | entries = Utilities.createNonEditableTextArea(LocalizableMessage.EMPTY, 6, 40); |
| | | scrollEntries = Utilities.createScrollPane(entries); |
| | | gbc.weighty = 0.1; |
| | | gbc.fill = GridBagConstraints.BOTH; |
| | |
| | | add(lGroups, gbc); |
| | | gbc.insets.top = 5; |
| | | gbc.gridwidth = 1; |
| | | groups = Utilities.createTextArea(Message.EMPTY, 8, 40); |
| | | groups = Utilities.createTextArea(LocalizableMessage.EMPTY, 8, 40); |
| | | JScrollPane scrollGroups = Utilities.createScrollPane(groups); |
| | | gbc.weightx = 1.0; |
| | | gbc.weighty = 1.0; |
| | |
| | | } |
| | | } |
| | | |
| | | private void updateErrors(List<Message> errors) |
| | | private void updateErrors(List<LocalizableMessage> errors) |
| | | { |
| | | SwingUtilities.invokeLater(new Runnable() |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | private void handleErrorsAndLaunchTask(ArrayList<Message> errors) |
| | | private void handleErrorsAndLaunchTask(ArrayList<LocalizableMessage> errors) |
| | | { |
| | | if (errors.size() == 0) |
| | | { |