| | |
| | | import org.opends.guitools.controlpanel.ui.renderer.CustomListCellRenderer; |
| | | 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.quicksetup.Installation; |
| | | import org.opends.quicksetup.installer.InstallerHelper; |
| | | import org.opends.quicksetup.util.Utils; |
| | |
| | | |
| | | private DocumentListener documentListener; |
| | | |
| | | private final Message NEW_BACKEND = INFO_CTRL_PANEL_NEW_BACKEND_LABEL.get(); |
| | | private final LocalizableMessage NEW_BACKEND = INFO_CTRL_PANEL_NEW_BACKEND_LABEL.get(); |
| | | |
| | | /** |
| | | * The default constructor. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public Message getTitle() |
| | | public LocalizableMessage getTitle() |
| | | { |
| | | return INFO_CTRL_PANEL_NEW_BASE_DN_TITLE.get(); |
| | | } |
| | |
| | | setPrimaryValid(lDirectoryData); |
| | | setSecondaryValid(lPath); |
| | | setSecondaryValid(lNumberOfEntries); |
| | | final LinkedHashSet<Message> errors = new LinkedHashSet<Message>(); |
| | | final LinkedHashSet<LocalizableMessage> errors = new LinkedHashSet<LocalizableMessage>(); |
| | | |
| | | ServerDescriptor desc = getInfo().getServerDescriptor(); |
| | | |
| | |
| | | String nEntries = numberOfEntries.getText(); |
| | | int minValue = 1; |
| | | int maxValue = isLocal() ? 20000 : 1000; |
| | | Message errMsg = ERR_NUMBER_OF_ENTRIES_INVALID.get(minValue, maxValue); |
| | | LocalizableMessage errMsg = ERR_NUMBER_OF_ENTRIES_INVALID.get(minValue, maxValue); |
| | | checkIntValue(errors, nEntries, minValue, maxValue, errMsg); |
| | | } |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public Message getTaskDescription() |
| | | public LocalizableMessage getTaskDescription() |
| | | { |
| | | return INFO_CTRL_PANEL_NEW_BASE_DN_TASK_DESCRIPTION.get(newBaseDN, |
| | | backendSet.iterator().next()); |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | public boolean canLaunch(Task taskToBeLaunched, |
| | | Collection<Message> incompatibilityReasons) |
| | | Collection<LocalizableMessage> incompatibilityReasons) |
| | | { |
| | | boolean canLaunch = true; |
| | | if (state == State.RUNNING && runningOnSameServer(taskToBeLaunched)) |
| | |
| | | */ |
| | | public void run() |
| | | { |
| | | Message msg = INFO_CTRL_PANEL_CREATING_BACKEND_PROGRESS.get( |
| | | LocalizableMessage msg = INFO_CTRL_PANEL_CREATING_BACKEND_PROGRESS.get( |
| | | getBackendName(), newBaseDN); |
| | | getProgressDialog().appendProgressHtml( |
| | | Utilities.getProgressWithPoints(msg, |
| | |
| | | */ |
| | | public void run() |
| | | { |
| | | Message msg = INFO_CTRL_PANEL_CREATING_BASE_DN_PROGRESS.get( |
| | | LocalizableMessage msg = INFO_CTRL_PANEL_CREATING_BASE_DN_PROGRESS.get( |
| | | newBaseDN, getBackendName()); |
| | | getProgressDialog().appendProgressHtml( |
| | | Utilities.getProgressWithPoints(msg, |