((TopographyCreatorModel)panelModel).getScenario().updateCurrentStateSerialized();// casting should be safe her because in the other two modes (onlineVis and postVis), updateModel() won't be called because it's set to uneditable
}catch(IOExceptione){
ScenarioJPanel.setActiveJsonParsingErrorMsg("TOPOGRAPHY CREATOR tab:\n"+e.getMessage());// add name of scenario element?
ScenarioPanel.setActiveJsonParsingErrorMsg("TOPOGRAPHY CREATOR tab:\n"+e.getMessage());// add name of scenario element?
thrownewRuntimeException("Can't find row in scenarioTable corresponding to scenario "+value.getName());// if we'd return -1 as before, this throws in-thread errors that are difficult to debug because of the lack of a stacktrace!