Revision 9a826147
Added by Katja Luther over 9 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/password/PasswordWizard.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import org.eclipse.jface.wizard.Wizard; |
14 | 14 |
import org.eclipse.swt.widgets.Display; |
15 |
import org.springframework.security.access.AccessDeniedException; |
|
15 | 16 |
|
16 | 17 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
17 | 18 |
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled; |
... | ... | |
75 | 76 |
internalConversation.unbind(); |
76 | 77 |
internalConversation.close(); |
77 | 78 |
return true; |
78 |
}catch(Exception e){ |
|
79 |
}catch(AccessDeniedException e){
|
|
79 | 80 |
MessagingUtils.warningDialog("Could not change password", this, "The old password is not correct."); |
80 | 81 |
|
82 |
return false; |
|
83 |
}catch(Exception e){ |
|
84 |
MessagingUtils.warningDialog("Problem with changing password", this, "The password could not be changed. " + e.getMessage()); |
|
81 | 85 |
return false; |
82 | 86 |
}finally{ |
83 | 87 |
if(conversation != null){ |
Also available in: Unified diff
fixing problems in bulkeditor and minor