diff --git a/org.knime.knip.bdv.panel/src/org/knime/knip/bdv/BigDataViewerUI.java b/org.knime.knip.bdv.panel/src/org/knime/knip/bdv/BigDataViewerUI.java index e765fe3b..8ca67398 100644 --- a/org.knime.knip.bdv.panel/src/org/knime/knip/bdv/BigDataViewerUI.java +++ b/org.knime.knip.bdv.panel/src/org/knime/knip/bdv/BigDataViewerUI.java @@ -30,6 +30,7 @@ import org.knime.knip.bdv.uicomponents.SelectionAndGroupingTabs; import org.knime.knip.bdv.uicomponents.SourceProperties; import org.knime.knip.bdv.uicomponents.TransformationPanel; +import org.knime.knip.core.KNIPGateway; import org.scijava.Context; import org.scijava.event.EventService; @@ -141,7 +142,7 @@ public synchronized AccumulateProjectorAlphaBlendingARGB createAccumulateProject }; public BigDataViewerUI(final JFrame frame) { - Context c = new Context(); + Context c = KNIPGateway.getInstance().ctx(); c.inject(this); EventService es = c.getService(EventService.class); es.subscribe(this);