From e1e781bb2135ef78592226f1a3eaba4925702f1f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 3 May 2021 16:38:41 -0700 Subject: :star: --- NET/worlds/scape/ObjPropertyEditor.java | 98 +++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 NET/worlds/scape/ObjPropertyEditor.java (limited to 'NET/worlds/scape/ObjPropertyEditor.java') 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 -- cgit v1.2.3