| | |
| | | import java.io.StringReader; |
| | | import java.util.ArrayList; |
| | | |
| | | import javax.swing.SwingUtilities; |
| | | |
| | | import org.opends.guitools.controlpanel.browser.BrowserController; |
| | | import org.opends.guitools.controlpanel.event.ConfigurationChangeEvent; |
| | | import org.opends.guitools.controlpanel.task.NewEntryTask; |
| | |
| | | import org.opends.server.util.LDIFReader; |
| | | |
| | | /** |
| | | * Abstract class used to refactor some code among the different panels that are |
| | | * used to create a new entry. |
| | | * Abstract class used to re-factor some code among the different panels that |
| | | * are used to create a new entry. |
| | | * |
| | | */ |
| | | public abstract class AbstractNewEntryPanel extends StatusGenericPanel |
| | |
| | | } |
| | | if (errors.size() == 0) |
| | | { |
| | | ProgressDialog dlg = new ProgressDialog( |
| | | final ProgressDialog dlg = new ProgressDialog( |
| | | Utilities.createFrame(), Utilities.getParentDialog(this), |
| | | getProgressDialogTitle(), getInfo()); |
| | | try |
| | |
| | | dlg); |
| | | dlg.setVisible(true); |
| | | Utilities.getParentDialog(this).setVisible(false); |
| | | SwingUtilities.invokeLater(new Runnable() |
| | | { |
| | | public void run() |
| | | { |
| | | dlg.toFront(); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | catch (Throwable t) |