use of org.freeplane.plugin.script.proxy.Proxy.Map in project freeplane by freeplane.
the class ControllerProxy method getOpenMaps.
public List<Map> getOpenMaps() {
Collection<MapModel> mapModels = getMapViewManager().getMaps().values();
ArrayList<Map> mapProxies = new ArrayList<Map>(mapModels.size());
for (MapModel mapModel : mapModels) {
mapProxies.add(new MapProxy(mapModel, scriptContext));
}
return mapProxies;
}
use of org.freeplane.plugin.script.proxy.Proxy.Map in project freeplane by freeplane.
the class ScriptApiTest method test_Map_close.
public void test_Map_close() {
Map originalMap = node.getMap();
map = c.newMap();
map.getRoot().createChild("child 1");
assertFalse("a new map should have been opened", originalMap.equals(map));
map.close(true, false);
assertEquals("the original map should be selected again", originalMap.getName(), c.getSelected().getMap().getName());
// let tearDown() some work to do...
map = c.newMap();
}