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);
}
}
Aggregations