From f284f3dae7f853a7523c88e0915f7562910e4ade Mon Sep 17 00:00:00 2001 From: Gabriel Einsdorf Date: Wed, 27 Jun 2018 13:01:43 +0200 Subject: [PATCH] BigdataViewerUI: use Scijava context from KNIPGateway --- .../src/org/knime/knip/bdv/BigDataViewerUI.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);