mirror of
https://github.com/DanilaFe/abacus
synced 2024-09-06 15:53:04 -07:00
Remove the window as a part of the Abacus class.
This commit is contained in:
parent
5e8afd54e0
commit
b35d3a3cd4
|
@ -34,10 +34,6 @@ public class Abacus {
|
||||||
*/
|
*/
|
||||||
public static final File CONFIG_FILE = new File("config.toml");
|
public static final File CONFIG_FILE = new File("config.toml");
|
||||||
|
|
||||||
/**
|
|
||||||
* The main Abacus UI.
|
|
||||||
*/
|
|
||||||
private Window mainUi;
|
|
||||||
/**
|
/**
|
||||||
* The plugin manager responsible for
|
* The plugin manager responsible for
|
||||||
* loading and unloading plugins,
|
* loading and unloading plugins,
|
||||||
|
@ -63,7 +59,6 @@ public class Abacus {
|
||||||
*/
|
*/
|
||||||
public Abacus(){
|
public Abacus(){
|
||||||
pluginManager = new PluginManager();
|
pluginManager = new PluginManager();
|
||||||
mainUi = new Window(this);
|
|
||||||
numberReducer = new NumberReducer(this);
|
numberReducer = new NumberReducer(this);
|
||||||
configuration = new ConfigurationObject(CONFIG_FILE);
|
configuration = new ConfigurationObject(CONFIG_FILE);
|
||||||
configuration.save(CONFIG_FILE);
|
configuration.save(CONFIG_FILE);
|
||||||
|
@ -81,8 +76,6 @@ public class Abacus {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
pluginManager.load();
|
pluginManager.load();
|
||||||
|
|
||||||
mainUi.setVisible(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -101,14 +94,6 @@ public class Abacus {
|
||||||
return pluginManager;
|
return pluginManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the current UI.
|
|
||||||
* @return the UI window in this abacus instance.
|
|
||||||
*/
|
|
||||||
public Window getMainUi() {
|
|
||||||
return mainUi;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the reducer that is responsible for transforming
|
* Get the reducer that is responsible for transforming
|
||||||
* an expression into a number.
|
* an expression into a number.
|
||||||
|
@ -171,6 +156,6 @@ public class Abacus {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
new Abacus();
|
new Window(new Abacus()).setVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user