use of org.freeplane.main.addons.AddOnsController in project freeplane by freeplane.
the class FreeplaneGUIStarter method loadMaps.
private void loadMaps(final String[] args) {
final Controller controller = Controller.getCurrentController();
final boolean alwaysLoadLastMaps = ResourceController.getResourceController().getBooleanProperty("always_load_last_maps");
if (alwaysLoadLastMaps && !dontLoadLastMaps) {
loadLastMaps();
}
loadMaps(controller, args);
if (controller.getMap() == null && !alwaysLoadLastMaps && !dontLoadLastMaps) {
final AddOnsController addonsController = AddOnsController.getController();
addonsController.setAutoInstallEnabled(false);
loadLastMaps();
addonsController.setAutoInstallEnabled(true);
}
final ModeController modeController = Controller.getCurrentModeController();
if (firstRun && !dontLoadLastMaps) {
final String map = ResourceController.getResourceController().getProperty("whatsnew_map");
((MMapController) modeController.getMapController()).newDocumentationMap(map);
}
if (null != controller.getMap()) {
return;
}
controller.selectMode(MModeController.MODENAME);
MFileManager.getController(modeController).newMapFromDefaultTemplate();
}
Aggregations