mirror of
https://github.com/DanilaFe/abacus
synced 2024-11-17 16:09:32 -08: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");
|
||||
|
||||
/**
|
||||
* The main Abacus UI.
|
||||
*/
|
||||
private Window mainUi;
|
||||
/**
|
||||
* The plugin manager responsible for
|
||||
* loading and unloading plugins,
|
||||
|
@ -63,7 +59,6 @@ public class Abacus {
|
|||
*/
|
||||
public Abacus(){
|
||||
pluginManager = new PluginManager();
|
||||
mainUi = new Window(this);
|
||||
numberReducer = new NumberReducer(this);
|
||||
configuration = new ConfigurationObject(CONFIG_FILE);
|
||||
configuration.save(CONFIG_FILE);
|
||||
|
@ -81,8 +76,6 @@ public class Abacus {
|
|||
e.printStackTrace();
|
||||
}
|
||||
pluginManager.load();
|
||||
|
||||
mainUi.setVisible(true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -101,14 +94,6 @@ public class Abacus {
|
|||
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
|
||||
* an expression into a number.
|
||||
|
@ -171,6 +156,6 @@ public class Abacus {
|
|||
e.printStackTrace();
|
||||
}
|
||||
|
||||
new Abacus();
|
||||
new Window(new Abacus()).setVisible(true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user