1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Inverted MVC logic on installer to get a cleaner code.

Part of the control logic was moved from listeners to GUI class methods.
This goes against a pure MVC but makes the code much more cleaner.
This commit is contained in:
Cristian Maglie
2014-05-16 01:07:35 +02:00
committed by Federico Fissore
parent cf058c37ba
commit 5d1e4e3f70
5 changed files with 88 additions and 157 deletions

View File

@ -586,6 +586,9 @@ public class BaseNoGui {
static public void initPackages() throws Exception {
indexer = new ContributionsIndexer(BaseNoGui.getSettingsFolder());
if (!indexer.getIndexFile().isFile())
// TODO: run first setup
;
indexer.parseIndex();
indexer.syncWithFilesystem();
System.out.println(indexer);