Search in sources :

Example 1 with ShortSettingEditorConfigDialog

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

the class ShortSetEditorConfigAction method run.

public void run() {
    DatabaseEditorConfig editorConfig = QueryOptions.getEditorConfig(database, false);
    ShortSettingEditorConfigDialog dialog = new ShortSettingEditorConfigDialog(Display.getCurrent().getActiveShell(), editorConfig);
    if (IDialogConstants.OK_ID == dialog.open()) {
        editorConfig = dialog.getEditorConfig();
        QueryOptions.putEditorConfig(database, editorConfig, false);
        CQBDBNodePersistManager.getInstance().saveDatabases();
    }
}
Also used : ShortSettingEditorConfigDialog(com.cubrid.cubridquery.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.cubridquery.ui.common.dialog.ShortSettingEditorConfigDialog)1