Search in sources :

Example 1 with AddOnsController

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();
}
Also used : MMapController(org.freeplane.features.map.mindmapmode.MMapController) FModeController(org.freeplane.features.mode.filemode.FModeController) ModeController(org.freeplane.features.mode.ModeController) MModeController(org.freeplane.features.mode.mindmapmode.MModeController) FModeController(org.freeplane.features.mode.filemode.FModeController) MMapController(org.freeplane.features.map.mindmapmode.MMapController) TimeController(org.freeplane.features.time.TimeController) FilterController(org.freeplane.features.filter.FilterController) HelpController(org.freeplane.features.help.HelpController) MapController(org.freeplane.features.map.MapController) LogicalStyleFilterController(org.freeplane.features.styles.LogicalStyleFilterController) IconController(org.freeplane.features.icon.IconController) Controller(org.freeplane.features.mode.Controller) MMapViewController(org.freeplane.view.swing.map.mindmapmode.MMapViewController) TextController(org.freeplane.features.text.TextController) ModelessAttributeController(org.freeplane.features.attribute.ModelessAttributeController) PrintController(org.freeplane.features.print.PrintController) FormatController(org.freeplane.features.format.FormatController) AddOnsController(org.freeplane.main.addons.AddOnsController) ResourceController(org.freeplane.core.resources.ResourceController) LinkController(org.freeplane.features.link.LinkController) HighlightController(org.freeplane.features.highlight.HighlightController) FrameController(org.freeplane.features.ui.FrameController) ModeController(org.freeplane.features.mode.ModeController) MModeController(org.freeplane.features.mode.mindmapmode.MModeController) ScannerController(org.freeplane.features.format.ScannerController) AddOnsController(org.freeplane.main.addons.AddOnsController)

Aggregations

ResourceController (org.freeplane.core.resources.ResourceController)1 ModelessAttributeController (org.freeplane.features.attribute.ModelessAttributeController)1 FilterController (org.freeplane.features.filter.FilterController)1 FormatController (org.freeplane.features.format.FormatController)1 ScannerController (org.freeplane.features.format.ScannerController)1 HelpController (org.freeplane.features.help.HelpController)1 HighlightController (org.freeplane.features.highlight.HighlightController)1 IconController (org.freeplane.features.icon.IconController)1 LinkController (org.freeplane.features.link.LinkController)1 MapController (org.freeplane.features.map.MapController)1 MMapController (org.freeplane.features.map.mindmapmode.MMapController)1 Controller (org.freeplane.features.mode.Controller)1 ModeController (org.freeplane.features.mode.ModeController)1 FModeController (org.freeplane.features.mode.filemode.FModeController)1 MModeController (org.freeplane.features.mode.mindmapmode.MModeController)1 PrintController (org.freeplane.features.print.PrintController)1 LogicalStyleFilterController (org.freeplane.features.styles.LogicalStyleFilterController)1 TextController (org.freeplane.features.text.TextController)1 TimeController (org.freeplane.features.time.TimeController)1 FrameController (org.freeplane.features.ui.FrameController)1