Search in sources :

Example 6 with HighlightController

use of org.freeplane.features.highlight.HighlightController 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, ""));
        controller.addExtension(HighlightController.class, new HighlightController());
        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.installConditionControllers();
        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) HighlightController(org.freeplane.features.highlight.HighlightController) FilterController(org.freeplane.features.filter.FilterController) HelpController(org.freeplane.features.help.HelpController) HighlightController(org.freeplane.features.highlight.HighlightController) 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

HighlightController (org.freeplane.features.highlight.HighlightController)6 ResourceController (org.freeplane.core.resources.ResourceController)4 ModelessAttributeController (org.freeplane.features.attribute.ModelessAttributeController)4 FilterController (org.freeplane.features.filter.FilterController)4 FormatController (org.freeplane.features.format.FormatController)4 IconController (org.freeplane.features.icon.IconController)4 LinkController (org.freeplane.features.link.LinkController)4 MapController (org.freeplane.features.map.MapController)4 Controller (org.freeplane.features.mode.Controller)4 ModeController (org.freeplane.features.mode.ModeController)4 ShowSelectionAsRectangleAction (org.freeplane.core.ui.ShowSelectionAsRectangleAction)3 ScannerController (org.freeplane.features.format.ScannerController)3 HelpController (org.freeplane.features.help.HelpController)3 LogicalStyleFilterController (org.freeplane.features.styles.LogicalStyleFilterController)3 TextController (org.freeplane.features.text.TextController)3 TimeController (org.freeplane.features.time.TimeController)3 Graphics2D (java.awt.Graphics2D)2 NextNodeAction (org.freeplane.features.filter.NextNodeAction)2 NodeHighlighter (org.freeplane.features.highlight.NodeHighlighter)2 NodeModel (org.freeplane.features.map.NodeModel)2