170171172173174175176177178179180
} if (defloc == null) { log.warning("Scene has no def. entrance '" + path + "'."); } _panel.setScene(new StageScene(model, null), defloc); } } catch (Exception e) { errmsg = "Error parsing scene file '" + path + "'."; log.warning(e);
301302303304305306307308309310311
protected void newScene () { try { StageSceneModel model = StageSceneModel.blankStageSceneModel(); model.type = StageSceneModel.WORLD; setScene(new StageScene(model, null)); } catch (Exception e) { log.warning("Unable to set blank scene.", e); } }
380381382383384385386387388389
{ StageSceneModel model = (StageSceneModel)_parser.parseScene(path); if (model == null) { return false; } setScene(new StageScene(model, null)); // keep track of the path for later saving setFilePath(path); return true; }