Project

General

Profile

« Previous | Next » 

Revision 49d3c2dd

Added by Katja Luther over 1 year ago

ref #10186: remove conversation holder

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/password/EditPasswordElement.java
15 15
import org.eclipse.swt.widgets.Button;
16 16
import org.eclipse.swt.widgets.Label;
17 17

  
18
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
19
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
20 18
import eu.etaxonomy.cdm.api.service.IUserService;
21 19
import eu.etaxonomy.cdm.model.permission.User;
22 20
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
......
34 32
 */
35 33
public class EditPasswordElement
36 34
        extends AbstractCdmFormElement
37
        implements SelectionListener, IConversationEnabled{
35
        implements SelectionListener{
38 36

  
39 37
	private User user;
40 38
	private Button button;
41 39

  
42
	private ConversationHolder conversation;
43

  
44 40
	public EditPasswordElement(CdmFormFactory formFactory,
45
			ICdmFormElement formElement, String labelString, User user, ConversationHolder conversation) {
41
			ICdmFormElement formElement, String labelString, User user) {
46 42
		super(formFactory, formElement);
47 43

  
48
		this.conversation = conversation;
49 44
		this.user = user;
50 45

  
51 46
		Label label = formFactory.createLabel(getLayoutComposite(), null);
......
65 60
		if(!CdmStore.getService(IUserService.class).userExists(user.getUsername())) {
66 61
			MessagingUtils.warningDialog(Messages.EditPasswordElement_USERNAME_DOES_NOT_EXIST, this, String.format(Messages.EditPasswordElement_PLEASE_CREATE_OR_SAVE_USER, user.getUsername()));
67 62
		} else {
68
			PasswordWizard wizard = new PasswordWizard(user, conversation);
63
			PasswordWizard wizard = new PasswordWizard(user);
69 64
			WizardDialog dialog = new WizardDialog(getLayoutComposite().getShell(), wizard);
70 65
			dialog.open();
71 66
		}
......
74 69
	@Override
75 70
	public void widgetDefaultSelected(SelectionEvent e) {}
76 71

  
77
	@Override
78
	public void update(CdmDataChangeMap arg0) {}
79

  
80
	@Override
81
	public ConversationHolder getConversationHolder() {
82
		return conversation;
83
	}
72
	
84 73
}

Also available in: Unified diff