use of com.cubrid.cubridmanager.core.cubrid.user.model.UserDetailInfo in project cubrid-manager by CUBRID.
the class DBAuthComparator method editUser.
/**
* edit User
*/
public void editUser() {
TableItem[] items = userTableViewer.getTable().getSelection();
if (items.length == 1) {
TableItem item = items[0];
UserDetailInfo userInfo = (UserDetailInfo) item.getData();
Set<String> typeSet = new HashSet<String>();
typeSet.add(NodeType.USER);
ICubridNode userNode = CommonUITool.findNode(database, typeSet, userInfo.getUserName());
if (userNode != null) {
EditUserAction action = (EditUserAction) ActionManager.getInstance().getAction(EditUserAction.ID);
action.doRun((ISchemaNode) userNode);
refresh();
}
} else {
CommonUITool.openWarningBox(Messages.errNoUserSelected);
}
}
Aggregations