Search in sources :

Example 1 with ShortSettingEditorConfigDialog

use of com.cubrid.cubridmanager.ui.common.dialog.ShortSettingEditorConfigDialog in project cubrid-manager by CUBRID.

the class ShortSetEditorConfigAction method run.

@Override
public void run() {
    boolean isCMMode = PerspectiveManager.getInstance().isManagerMode();
    DatabaseEditorConfig editorConfig = QueryOptions.getEditorConfig(database, isCMMode);
    ShortSettingEditorConfigDialog dialog = new ShortSettingEditorConfigDialog(Display.getCurrent().getActiveShell(), editorConfig);
    if (IDialogConstants.OK_ID == dialog.open()) {
        editorConfig = dialog.getEditorConfig();
        QueryOptions.putEditorConfig(database, editorConfig, isCMMode);
        CMDBNodePersistManager.getInstance().addDatabase(database, editorConfig);
    }
}
Also used : ShortSettingEditorConfigDialog(com.cubrid.cubridmanager.ui.common.dialog.ShortSettingEditorConfigDialog) DatabaseEditorConfig(com.cubrid.common.ui.spi.model.DatabaseEditorConfig)

Aggregations

DatabaseEditorConfig (com.cubrid.common.ui.spi.model.DatabaseEditorConfig)1 ShortSettingEditorConfigDialog (com.cubrid.cubridmanager.ui.common.dialog.ShortSettingEditorConfigDialog)1