use of com.cubrid.cubridmanager.ui.monitoring.dialog.AddMonitorInstanceDlg in project cubrid-manager by CUBRID.
the class EditMonitorInstanceAction method run.
/**
* Override the run method in order to open an instance of status monitor
* dialog
*
*/
public void run() {
Object[] obj = this.getSelectedObj();
ICubridNode selection = (ICubridNode) obj[0];
String selectLbl = selection.getLabel();
ServerInfo serverInfo = selection.getServer().getServerInfo();
String prefix = QueryOptions.getPrefix(serverInfo);
String selectionKey = prefix + QueryOptions.MONITOR_FOLDER_NAME + selectLbl;
CubridStatusMonitorInstance instance = CubridStatusMonitorInstance.getInstance();
StatusMonInstanceData monData = instance.getData(selectionKey);
AddMonitorInstanceDlg addMonitorInstanceDlg = new AddMonitorInstanceDlg(getShell());
addMonitorInstanceDlg.setSelection(selection);
addMonitorInstanceDlg.setMonData(monData);
addMonitorInstanceDlg.open();
}
use of com.cubrid.cubridmanager.ui.monitoring.dialog.AddMonitorInstanceDlg in project cubrid-manager by CUBRID.
the class AddMonitorInstanceAction method run.
/**
* Override the run method in order to open an instance of status monitor
* dialog
*
*/
public void run() {
Object[] obj = this.getSelectedObj();
ICubridNode selection = (ICubridNode) obj[0];
AddMonitorInstanceDlg addMonitorInstanceDlg = new AddMonitorInstanceDlg(getShell());
addMonitorInstanceDlg.setSelection(selection);
addMonitorInstanceDlg.open();
TreeViewer treeViewer = (TreeViewer) this.getSelectionProvider();
CommonUITool.refreshNavigatorTree(treeViewer, selection);
}
Aggregations