Search in sources :

Example 1 with MapIO

use of org.freeplane.features.mapio.MapIO in project freeplane by freeplane.

the class ControllerProxy method newMapFromTemplate.

public Map newMapFromTemplate(File templateFile) {
    final MapModel oldMap = Controller.getCurrentController().getMap();
    final MMapIO mapIO = (MMapIO) Controller.getCurrentModeController().getExtension(MapIO.class);
    final MapModel newMap = mapIO.newMapFromTemplate(templateFile);
    restartTransaction(oldMap, newMap);
    return new MapProxy(newMap, scriptContext);
}
Also used : MMapIO(org.freeplane.features.mapio.mindmapmode.MMapIO) MapIO(org.freeplane.features.mapio.MapIO) MMapIO(org.freeplane.features.mapio.mindmapmode.MMapIO) MMapModel(org.freeplane.features.map.mindmapmode.MMapModel) MapModel(org.freeplane.features.map.MapModel)

Example 2 with MapIO

use of org.freeplane.features.mapio.MapIO in project freeplane by freeplane.

the class ControllerProxy method newMap.

public Map newMap() {
    final MapModel oldMap = Controller.getCurrentController().getMap();
    final MMapIO mapIO = (MMapIO) Controller.getCurrentModeController().getExtension(MapIO.class);
    final MapModel newMap = mapIO.newMapFromDefaultTemplate();
    restartTransaction(oldMap, newMap);
    return new MapProxy(newMap, scriptContext);
}
Also used : MMapIO(org.freeplane.features.mapio.mindmapmode.MMapIO) MapIO(org.freeplane.features.mapio.MapIO) MMapIO(org.freeplane.features.mapio.mindmapmode.MMapIO) MMapModel(org.freeplane.features.map.mindmapmode.MMapModel) MapModel(org.freeplane.features.map.MapModel)

Aggregations

MapModel (org.freeplane.features.map.MapModel)2 MMapModel (org.freeplane.features.map.mindmapmode.MMapModel)2 MapIO (org.freeplane.features.mapio.MapIO)2 MMapIO (org.freeplane.features.mapio.mindmapmode.MMapIO)2