summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/ObjPropertyEditor.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-03 16:38:41 -0700
committerFuwn <[email protected]>2021-05-03 16:38:41 -0700
commite1e781bb2135ef78592226f1a3eaba4925702f1f (patch)
tree8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/ObjPropertyEditor.java
downloadworlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz
worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip
:star:HEADmain
Diffstat (limited to 'NET/worlds/scape/ObjPropertyEditor.java')
-rw-r--r--NET/worlds/scape/ObjPropertyEditor.java98
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