protected void init() { if (toolMap == null) { toolMap = new HashMap<>(); toolList = new ArrayList<>(); List<? extends FxTool> tools = pluginService.createInstancesOfType(FxTool.class); for (FxTool tool : tools) { toolMap.put(tool.getClass(), tool); toolList.add(tool); } setCurrentTool(Hand.class); } }
/** Creates the postprocessor chain. */ private List<? extends PostprocessorPlugin> post(final boolean process) { if (!process) return null; return pluginService.createInstancesOfType(PostprocessorPlugin.class); }