Esempio n. 1
0
  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);
    }
  }
Esempio n. 2
0
 /** Creates the postprocessor chain. */
 private List<? extends PostprocessorPlugin> post(final boolean process) {
   if (!process) return null;
   return pluginService.createInstancesOfType(PostprocessorPlugin.class);
 }