Search in sources :

Example 1 with ApplicationResourceController

use of org.freeplane.main.application.ApplicationResourceController in project freeplane by freeplane.

the class FreeplaneHeadlessStarter method createController.

public Controller createController() {
    try {
        Controller controller = new Controller(applicationResourceController);
        Controller.setCurrentController(controller);
        applicationResourceController.init();
        LogUtils.createLogger();
        FreeplaneGUIStarter.showSysInfo();
        final HeadlessMapViewController mapViewController = new HeadlessMapViewController();
        controller.setMapViewManager(mapViewController);
        controller.setViewController(new HeadlessUIController(controller, mapViewController, ""));
        System.setSecurityManager(new FreeplaneSecurityManager());
        FilterController.install();
        FormatController.install(new FormatController());
        final ScannerController scannerController = new ScannerController();
        ScannerController.install(scannerController);
        scannerController.addParsersForStandardFormats();
        ModelessAttributeController.install();
        TextController.install();
        TimeController.install();
        LinkController.install();
        IconController.install();
        HelpController.install();
        FilterController.getCurrentFilterController().getConditionFactory().addConditionController(70, new LogicalStyleFilterController());
        MapController.install();
        NodeHistory.install(controller);
        return controller;
    } catch (final Exception e) {
        LogUtils.severe(e);
        throw new RuntimeException(e);
    }
}
Also used : LogicalStyleFilterController(org.freeplane.features.styles.LogicalStyleFilterController) FormatController(org.freeplane.features.format.FormatController) FreeplaneSecurityManager(org.freeplane.main.application.FreeplaneSecurityManager) 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) TextController(org.freeplane.features.text.TextController) ModeController(org.freeplane.features.mode.ModeController) FormatController(org.freeplane.features.format.FormatController) ApplicationResourceController(org.freeplane.main.application.ApplicationResourceController) ModelessAttributeController(org.freeplane.features.attribute.ModelessAttributeController) ResourceController(org.freeplane.core.resources.ResourceController) MModeController(org.freeplane.features.mode.mindmapmode.MModeController) ScannerController(org.freeplane.features.format.ScannerController) LinkController(org.freeplane.features.link.LinkController) TimeController(org.freeplane.features.time.TimeController) ScannerController(org.freeplane.features.format.ScannerController)

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 IconController (org.freeplane.features.icon.IconController)1 LinkController (org.freeplane.features.link.LinkController)1 MapController (org.freeplane.features.map.MapController)1 Controller (org.freeplane.features.mode.Controller)1 ModeController (org.freeplane.features.mode.ModeController)1 MModeController (org.freeplane.features.mode.mindmapmode.MModeController)1 LogicalStyleFilterController (org.freeplane.features.styles.LogicalStyleFilterController)1 TextController (org.freeplane.features.text.TextController)1 TimeController (org.freeplane.features.time.TimeController)1 ApplicationResourceController (org.freeplane.main.application.ApplicationResourceController)1 FreeplaneSecurityManager (org.freeplane.main.application.FreeplaneSecurityManager)1