use of com.cubrid.cubridmanager.ui.common.dialog.UserManagementDialog in project cubrid-manager by CUBRID.
the class UserManagementAction method run.
/**
* Open the user management dialog and manage CUBRID Manager user
*/
public void run() {
Object[] obj = this.getSelectedObj();
if (obj == null || obj.length <= 0 || !isSupported(obj[0])) {
setEnabled(false);
return;
}
ICubridNode node = (ICubridNode) obj[0];
final CubridServer server = node.getServer();
final UserManagementDialog dialog = new UserManagementDialog(getShell());
dialog.setServer(server);
TaskExecutor taskExcutor = new GetUserInfoTaskExecutor(dialog, getShell());
GetCMUserListTask getCMUserListTask = new GetCMUserListTask(server.getServerInfo());
taskExcutor.addTask(getCMUserListTask);
new ExecTaskWithProgress(taskExcutor).exec();
if (taskExcutor.isSuccess()) {
dialog.open();
}
}
Aggregations