use of com.cubrid.cubridmanager.ui.mondashboard.dialog.DatabaseLogListDialog in project cubrid-manager by CUBRID.
the class OpenDatabaseLogAction method run.
/**
* open database log
*
* @see org.eclipse.jface.action.Action#run()
*/
public void run() {
Object[] objArr = this.getSelectedObj();
if (objArr == null || objArr.length <= 0 || !isSupported(objArr[0])) {
setEnabled(false);
return;
}
DatabaseMonitorPart dbMonPart = (DatabaseMonitorPart) objArr[0];
DatabaseNode dbNode = (DatabaseNode) dbMonPart.getModel();
String dbName = dbNode.getDbName();
HostNode hostNode = dbNode.getParent();
ServerInfo serverInfo = hostNode.getServerInfo();
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
DatabaseLogListDialog dialog = new DatabaseLogListDialog(shell, dbName, serverInfo);
dialog.open();
}
Aggregations