components/visual-panels/usermgr/src/java/vpanels/app/usermgr/com/oracle/solaris/vp/panels/usermgr/client/swing/DeleteUserAction.java
changeset 843 190d2b5889a8
parent 827 0944d8c0158b
equal deleted inserted replaced
842:9da05efee3cd 843:190d2b5889a8
   114 	ActionFailedException, ActionUnauthorizedException {
   114 	ActionFailedException, ActionUnauthorizedException {
   115 
   115 
   116 	if (!selection.isEmpty()) {
   116 	if (!selection.isEmpty()) {
   117 	    UserMgrPanelDescriptor descriptor = (UserMgrPanelDescriptor)
   117 	    UserMgrPanelDescriptor descriptor = (UserMgrPanelDescriptor)
   118 		control.getPanelDescriptor();
   118 		control.getPanelDescriptor();
   119 	    descriptor.addToDeleteList(selection.get(0));
   119 	    descriptor.saveDeletedUser(selection.get(0));
   120 	    descriptor.saveDeletedUsers();
       
   121 	    // If the running Control is a UserMgrControl for a just-deleted
   120 	    // If the running Control is a UserMgrControl for a just-deleted
   122 	    // service, reset the Control and navigate back to its parent
   121 	    // service, reset the Control and navigate back to its parent
   123 	    Control child = control.getRunningChild();
   122 	    Control child = control.getRunningChild();
   124 	    if (child instanceof UserMgrBasicControl) {
   123 	    if (child instanceof UserMgrBasicControl) {
   125 		UserManagedObject umo =
   124 		UserManagedObject umo =