diff options
Diffstat (limited to 'NET/worlds/scape/ObjPropertyEditor.java')
| -rw-r--r-- | NET/worlds/scape/ObjPropertyEditor.java | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/NET/worlds/scape/ObjPropertyEditor.java b/NET/worlds/scape/ObjPropertyEditor.java new file mode 100644 index 0000000..c9f106e --- /dev/null +++ b/NET/worlds/scape/ObjPropertyEditor.java @@ -0,0 +1,98 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import NET.worlds.console.PolledDialog; +/* */ import java.io.PrintStream; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class ObjPropertyEditor +/* */ extends PropEditor +/* */ { +/* */ SuperRoot root; +/* */ Class<?> clas; +/* */ +/* */ private ObjPropertyEditor(Property property, SuperRoot r, Class<?> clas) +/* */ { +/* 55 */ super(property); +/* 56 */ this.root = r; +/* 57 */ this.clas = clas; +/* */ } +/* */ +/* */ +/* */ +/* */ +/* */ public PolledDialog edit(EditTile parent, String title) +/* */ { +/* 65 */ return new ObjEditorDialog(parent, title, this.property, this.root, this.clas); +/* */ } +/* */ +/* */ +/* */ +/* */ +/* */ public static Property make(Property property, SuperRoot r, Class<?> clas) +/* */ { +/* 73 */ return property.setEditor(new ObjPropertyEditor(property, r, clas)); +/* */ } +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public static Property make(Property property, SuperRoot r, String clas) +/* */ { +/* 82 */ Class<?> c = null; +/* */ try { +/* 84 */ c = Class.forName(clas); +/* */ } +/* */ catch (ClassNotFoundException cfne) { +/* 87 */ System.out.println("Couldn't find " + clas); +/* 88 */ if (!$assertionsDisabled) throw new AssertionError(); +/* */ } +/* 90 */ return property.setEditor(new ObjPropertyEditor(property, r, c)); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\ObjPropertyEditor.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |