Revision 49d3c2dd
Added by Katja Luther over 1 year ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/wizard/AvailableVocabularyWizard.java | ||
---|---|---|
15 | 15 |
import org.eclipse.jface.wizard.IWizardPage; |
16 | 16 |
import org.eclipse.jface.wizard.Wizard; |
17 | 17 |
|
18 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
|
19 |
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled; |
|
20 | 18 |
import eu.etaxonomy.cdm.model.metadata.CdmPreference; |
21 | 19 |
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate; |
22 | 20 |
import eu.etaxonomy.cdm.model.metadata.PreferenceSubject; |
23 | 21 |
import eu.etaxonomy.cdm.persistence.dto.TermVocabularyDto; |
24 |
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap; |
|
25 | 22 |
import eu.etaxonomy.taxeditor.l10n.Messages; |
26 | 23 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
27 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
|
28 | 24 |
|
29 | 25 |
/** |
30 | 26 |
* @author k.luther |
31 | 27 |
* @since 04.06.2018 |
32 | 28 |
* |
33 | 29 |
*/ |
34 |
public class AvailableVocabularyWizard extends Wizard implements IConversationEnabled {
|
|
30 |
public class AvailableVocabularyWizard extends Wizard { |
|
35 | 31 |
|
36 |
private ConversationHolder conversation; |
|
37 | 32 |
private final AvailableAreaVocabulariesPage aPage; |
38 | 33 |
private boolean localPref = true; |
39 | 34 |
private CdmPreference pref; |
... | ... | |
123 | 118 |
return true; |
124 | 119 |
} |
125 | 120 |
|
126 |
@Override |
|
127 |
public void update(CdmDataChangeMap changeEvents) { |
|
128 |
} |
|
129 |
|
|
130 |
@Override |
|
131 |
public ConversationHolder getConversationHolder() { |
|
132 |
if (conversation == null) { |
|
133 |
conversation = CdmStore.createConversation(); |
|
134 |
} |
|
135 |
return conversation; |
|
136 |
} |
|
137 |
|
|
121 |
|
|
138 | 122 |
} |
Also available in: Unified diff
ref #10186: remove conversation holder