From 3aefbd8db2d18a4267382697fcff2b4f7513cacb Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Mon, 10 Apr 2017 22:37:32 +0300 Subject: [PATCH] Working on better plugin resolution --- numass-main/src/main/java/inr/numass/NumassPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numass-main/src/main/java/inr/numass/NumassPlugin.java b/numass-main/src/main/java/inr/numass/NumassPlugin.java index c8aabb3b..c1b7b9f8 100644 --- a/numass-main/src/main/java/inr/numass/NumassPlugin.java +++ b/numass-main/src/main/java/inr/numass/NumassPlugin.java @@ -77,7 +77,7 @@ public class NumassPlugin extends BasicPlugin { loadModels(fm.getModelManager()); loadMath(MathPlugin.buildFrom(context)); - ActionManager actions = new ActionManager(); + ActionManager actions = context.pluginManager().getOrLoad(ActionManager.class); actions.attach(context); actions.register(SlicingAction.class);