Project

General

Profile

« Previous | Next » 

Revision 5964be2c

Added by Patrick Plitzner over 6 years ago

ref #6925 Inject context into details and supplemental view

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataPartE4.java
14 14
import javax.annotation.PostConstruct;
15 15
import javax.inject.Inject;
16 16

  
17
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
18
import org.eclipse.e4.core.contexts.IEclipseContext;
17 19
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
18 20
import org.eclipse.jface.viewers.IStructuredSelection;
19 21
import org.eclipse.jface.viewers.StructuredSelection;
......
46 48
    }
47 49

  
48 50
	@PostConstruct
49
	public void create(Composite parent, MPart thisPart) {
51
	public void create(Composite parent, MPart thisPart, IEclipseContext context) {
50 52

  
51 53
	    this.thisPart = thisPart;
52 54

  
53
	    viewer = new SupplementalDataViewerE4(parent, this);
55
	    viewer = ContextInjectionFactory.make(SupplementalDataViewerE4.class, context);
56
	    ((SupplementalDataViewerE4)viewer).init(parent, this);
54 57
	}
55 58

  
56 59
    @Override

Also available in: Unified diff