public MapEditorTab(Project p, RubyObject map) {
super(p);
this.mid = RubyHelper.toInt(map.getInstanceVariable("@id"));
this.map = map;
try {
loadMap(new RXDataReader().readMap(p, mid));
} catch (Throwable t) {
YEx.warn("Can not load Map (" + mid + "):" + map, t);
}
// build gui