|
4 | 4 | import java.util.List;
|
5 | 5 |
|
6 | 6 | import org.knime.scijava.commands.converter.ConverterCacheService;
|
7 |
| -import org.knime.scijava.commands.io.InputDataRowService; |
8 |
| -import org.knime.scijava.commands.io.OutputDataRowService; |
9 |
| -import org.knime.scijava.commands.settings.NodeModelSettingsService; |
| 7 | +import org.knime.scijava.commands.module.NodeModuleService; |
10 | 8 | import org.knime.scijava.commands.settings.NodeSettingsService;
|
11 | 9 | import org.knime.scijava.commands.settings.SettingsModelTypeService;
|
12 |
| -import org.knime.scijava.commands.simplemapping.SimpleColumnMappingService; |
13 |
| -import org.knime.scijava.commands.widget.KNIMEWidgetService; |
14 | 10 | import org.knime.scijava.core.ResourceAwareClassLoader;
|
15 | 11 | import org.knime.scijava.core.SubContext;
|
16 | 12 | import org.knime.scijava.core.pluginindex.ReusablePluginIndex;
|
|
22 | 18 | import org.scijava.plugin.PluginIndex;
|
23 | 19 | import org.scijava.plugin.PluginService;
|
24 | 20 | import org.scijava.prefs.PrefService;
|
| 21 | +import org.scijava.script.ScriptService; |
25 | 22 | import org.scijava.service.Service;
|
26 | 23 | import org.scijava.ui.UIService;
|
27 | 24 | import org.scijava.widget.WidgetService;
|
@@ -50,15 +47,11 @@ public class SciJavaGateway {
|
50 | 47 |
|
51 | 48 | /** a list of services which need to be present in newly created contexts */
|
52 | 49 | protected static List<Class<? extends Service>> requiredServices = Arrays
|
53 |
| - .<Class<? extends Service>> asList(InputDataRowService.class, |
54 |
| - OutputDataRowService.class, PrefService.class, |
55 |
| - KNIMEExecutionService.class, NodeSettingsService.class, |
56 |
| - ObjectService.class, WidgetService.class, |
57 |
| - KNIMEWidgetService.class, UIService.class, |
| 50 | + .<Class<? extends Service>> asList(PrefService.class, |
| 51 | + ObjectService.class, WidgetService.class, UIService.class, |
58 | 52 | ConverterCacheService.class, CommandService.class,
|
59 |
| - NodeModelSettingsService.class, |
60 |
| - SettingsModelTypeService.class, |
61 |
| - SimpleColumnMappingService.class); |
| 53 | + NodeModuleService.class, SettingsModelTypeService.class, |
| 54 | + NodeSettingsService.class, ScriptService.class); |
62 | 55 |
|
63 | 56 | /**
|
64 | 57 | * Constructor. Only to be called from {@link #get()}.
|
@@ -101,7 +94,7 @@ public Context createSubContext() {
|
101 | 94 | return context;
|
102 | 95 | }
|
103 | 96 |
|
104 |
| - private Context getGlobalContext() { |
| 97 | + public Context getGlobalContext() { |
105 | 98 | if (m_globalContext == null) {
|
106 | 99 | m_globalContext = new Context(m_pluginIndex);
|
107 | 100 |
|
|
0 commit comments