Search in sources :

Example 1 with FreeplaneGUIStarter

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

the class ConvertibleTest method initStatics.

@BeforeClass
public static void initStatics() {
    // we have to start Freeplane to create a Controller for script execution could we avoid that?
    System.setProperty("org.freeplane.nosplash", "true");
    final FreeplaneGUIStarter freeplaneGUIStarter = new FreeplaneGUIStarter();
    final Controller controller = freeplaneGUIStarter.createController();
    freeplaneGUIStarter.createModeControllers(controller);
    ResourceController.getResourceController().setProperty(ScriptingPermissions.RESOURCES_EXECUTE_SCRIPTS_WITHOUT_ASKING, true);
}
Also used : FreeplaneGUIStarter(org.freeplane.main.application.FreeplaneGUIStarter) ResourceController(org.freeplane.core.resources.ResourceController) Controller(org.freeplane.features.mode.Controller) BeforeClass(org.junit.BeforeClass)

Aggregations

ResourceController (org.freeplane.core.resources.ResourceController)1 Controller (org.freeplane.features.mode.Controller)1 FreeplaneGUIStarter (org.freeplane.main.application.FreeplaneGUIStarter)1 BeforeClass (org.junit.BeforeClass)1