| | |
| | | import org.opends.guitools.controlpanel.task.Task; |
| | | import org.opends.guitools.controlpanel.util.ConfigReader; |
| | | import org.opends.guitools.controlpanel.util.Utilities; |
| | | import org.opends.messages.Message; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.opends.server.admin.client.ManagementContext; |
| | | import org.opends.server.admin.client.ldap.JNDIDirContextAdaptor; |
| | | import org.opends.server.admin.client.ldap.LDAPManagementContext; |
| | |
| | | |
| | | private boolean ignoreCheckSave; |
| | | |
| | | private Message INDEX_MODIFIED = |
| | | private LocalizableMessage INDEX_MODIFIED = |
| | | INFO_CTRL_PANEL_INDEX_MODIFIED_MESSAGE.get(); |
| | | |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public Message getTitle() |
| | | public LocalizableMessage getTitle() |
| | | { |
| | | return INFO_CTRL_PANEL_VLV_INDEX_PANEL_TITLE.get(); |
| | | } |
| | |
| | | |
| | | private void deleteIndex() |
| | | { |
| | | ArrayList<Message> errors = new ArrayList<Message>(); |
| | | ArrayList<LocalizableMessage> errors = new ArrayList<LocalizableMessage>(); |
| | | ProgressDialog dlg = new ProgressDialog( |
| | | Utilities.createFrame(), |
| | | Utilities.getParentDialog(this), |
| | |
| | | { |
| | | return; |
| | | } |
| | | List<Message> errors = checkErrors(false); |
| | | List<LocalizableMessage> errors = checkErrors(false); |
| | | |
| | | if (errors.isEmpty()) |
| | | { |
| | |
| | | { |
| | | ignoreCheckSave = true; |
| | | readOnlyName.setText(index.getName()); |
| | | titlePanel.setDetails(Message.raw(index.getName())); |
| | | titlePanel.setDetails(LocalizableMessage.raw(index.getName())); |
| | | if (index.getBackend() != null) |
| | | { |
| | | updateBaseDNCombo(index.getBackend()); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public Message getTaskDescription() |
| | | public LocalizableMessage getTaskDescription() |
| | | { |
| | | return INFO_CTRL_PANEL_MODIFY_VLV_INDEX_TASK_DESCRIPTION.get( |
| | | indexName, backendID); |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public boolean canLaunch(Task taskToBeLaunched, |
| | | Collection<Message> incompatibilityReasons) |
| | | Collection<LocalizableMessage> incompatibilityReasons) |
| | | { |
| | | boolean canLaunch = true; |
| | | if (state == State.RUNNING && runningOnSameServer(taskToBeLaunched)) |