Revision 972ecc88
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/classification/CloneClassificationWizard.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.taxeditor.ui.section.classification; |
11 | 11 |
|
12 |
import javax.inject.Inject; |
|
13 |
|
|
14 |
import org.eclipse.e4.core.contexts.ContextInjectionFactory; |
|
15 |
import org.eclipse.e4.core.contexts.IEclipseContext; |
|
12 | 16 |
import org.eclipse.jface.wizard.Wizard; |
13 |
import org.eclipse.swt.widgets.Display; |
|
14 | 17 |
|
15 | 18 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
16 | 19 |
import eu.etaxonomy.cdm.model.reference.Reference; |
... | ... | |
40 | 43 |
|
41 | 44 |
private Reference reference; |
42 | 45 |
|
43 |
public CloneClassificationWizard(Classification classification) { |
|
46 |
@Inject |
|
47 |
private IEclipseContext context; |
|
48 |
|
|
49 |
@Inject |
|
50 |
public CloneClassificationWizard() { |
|
44 | 51 |
super(); |
45 | 52 |
conversationHolder = CdmStore.createConversation(); |
46 |
formFactory = new CdmFormFactory(Display.getCurrent(), null); |
|
53 |
formFactory = ContextInjectionFactory.make(CdmFormFactory.class, context); |
|
54 |
} |
|
55 |
|
|
56 |
public void init(Classification classification){ |
|
47 | 57 |
cloneClassificationWizardPage = new CloneClassificationWizardPage(formFactory, conversationHolder, classification); |
48 | 58 |
addPage(cloneClassificationWizardPage); |
49 | 59 |
} |
Also available in: Unified diff
ref #6913 Remove org.eclipse.ui dependency from AbstractUtility