Skip to content

Commit

Permalink
manually added required services
Browse files Browse the repository at this point in the history
actually this should be done automatically ... somehow
  • Loading branch information
dietzc committed Jan 11, 2014
1 parent 44fc2a6 commit 93bf291
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@
import imagej.command.CommandInfo;
import imagej.command.DynamicCommand;
import imagej.data.autoscale.AutoscaleService;
import imagej.data.operator.CalculatorService;
import imagej.data.threshold.ThresholdService;
import imagej.data.types.DataTypeService;
import imagej.menu.MenuService;
import imagej.module.MethodCallException;
import imagej.module.ModuleException;
import imagej.module.ModuleInfo;
import imagej.module.ModuleItem;
import imagej.module.ModuleService;
import imagej.options.OptionsService;
import imagej.platform.PlatformService;
import imagej.tool.ToolService;
import imagej.ui.UIService;
import imagej.util.ColorRGB;
Expand All @@ -80,7 +84,6 @@
import org.scijava.log.LogService;
import org.scijava.object.ObjectService;
import org.scijava.plugin.PluginService;
import org.scijava.plugin.SingletonService;
import org.scijava.service.Service;
import org.scijava.util.ClassUtils;

Expand Down Expand Up @@ -113,15 +116,17 @@ public final class IJGateway {
*/
@SuppressWarnings("unchecked")
public static final Class<? extends Service>[] HEADLESS_IJ_SERVICES = new Class[]{ModuleService.class,
PluginService.class, WidgetService.class, AutoscaleService.class, AppService.class, DataTypeService.class};
PlatformService.class, PluginService.class, WidgetService.class, AutoscaleService.class, AppService.class,
DataTypeService.class};

/**
* all services that are supported out of the box. Mainly services that are actually not supported but will do no
* harm like the MenuService
*/
@SuppressWarnings("unchecked")
private static final Class<? extends Service>[] GUI_IJ_SERVICES = new Class[]{UIService.class, MenuService.class,
ToolService.class, EventService.class, ObjectService.class, SingletonService.class};
ToolService.class, EventService.class, ObjectService.class, CalculatorService.class,
AutoscaleService.class, ThresholdService.class, OptionsService.class};

// MEMBERS

Expand Down

0 comments on commit 93bf291

Please sign in to comment.