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);
}
}
Aggregations