[no commit message]

This commit is contained in:
Alexander Nozik 2016-08-04 22:52:48 +03:00
parent 9c5116316a
commit a41468a2e9
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,6 @@ public class Numass {
Context numassContext = new Context(parent, "numass", meta); Context numassContext = new Context(parent, "numass", meta);
GlobalContext.registerContext(numassContext); GlobalContext.registerContext(numassContext);
numassContext.loadPlugin("inr.numass:numass"); numassContext.loadPlugin("inr.numass:numass");
numassContext.setIO(new NumassIO());
return numassContext; return numassContext;
} }

View File

@ -71,6 +71,7 @@ public class NumassPlugin extends BasicPlugin {
@Override @Override
public void attach(Context context) { public void attach(Context context) {
// StorageManager.buildFrom(context); // StorageManager.buildFrom(context);
context.setIO(new NumassIO());
FitManager fm = context.provide("fitting", FitPlugin.class).getFitManager(); FitManager fm = context.provide("fitting", FitPlugin.class).getFitManager();
loadModels(fm.getModelManager()); loadModels(fm.getModelManager());
loadMath(MathPlugin.buildFrom(context)); loadMath(MathPlugin.buildFrom(context));
@ -94,7 +95,7 @@ public class NumassPlugin extends BasicPlugin {
@Override @Override
public void detach() { public void detach() {
//TODO clean up
} }
private void loadMath(MathPlugin math) { private void loadMath(MathPlugin math) {