From 321671923fa810228d326e9dff202177327d8396 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 19 Apr 2005 20:34:32 +0000 Subject: [PATCH] Make it possible for the available scene types to be easily augmented. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3505 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/stage/tools/editor/EditorApp.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/stage/tools/editor/EditorApp.java b/src/java/com/threerings/stage/tools/editor/EditorApp.java index efcdea0dd..f667a3dd8 100644 --- a/src/java/com/threerings/stage/tools/editor/EditorApp.java +++ b/src/java/com/threerings/stage/tools/editor/EditorApp.java @@ -238,6 +238,15 @@ public class EditorApp implements Runnable return new EditorFrame(); } + /** + * Derived classes can override this method and add additional scene + * types. + */ + protected void enumerateSceneTypes (List types) + { + types.add(StageSceneModel.WORLD); + } + /** * Instantiate the application object and start it running. */ @@ -322,7 +331,7 @@ public class EditorApp implements Runnable } public void enumerateSceneTypes (List types) { - types.add(StageSceneModel.WORLD); + EditorApp.this.enumerateSceneTypes(types); } }