blob: 608332ec7512bc81a1e9823440b88798c676f49e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
/* */ package NET.worlds.scape;
/* */
/* */ import NET.worlds.console.PolledDialog;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class PropAdder
/* */ implements LibraryDrop
/* */ {
/* */ protected VectorProperty property;
/* */
/* */ protected PropAdder(VectorProperty property)
/* */ {
/* 45 */ this.property = property;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */ public static VectorProperty make(VectorProperty property)
/* */ {
/* 54 */ return property.setAdder(new PropAdder(property));
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public PolledDialog add(EditTile parent, String title)
/* */ {
/* 66 */ if (!$assertionsDisabled) throw new AssertionError();
/* 67 */ return null;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean hasAddDialog()
/* */ {
/* 77 */ return false;
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ protected boolean checkObject(Object obj)
/* */ {
/* 89 */ return this.property.addTest(obj);
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public boolean libraryDrop(EditTile target, Object obj, boolean isPaste, boolean doDrop)
/* */ {
/* 99 */ if (checkObject(obj)) {
/* 100 */ if (doDrop) {
/* 101 */ if (isPaste) {
/* 102 */ target.addUndoablePaste(this.property, obj);
/* */ } else {
/* 104 */ target.addUndoableAdd(this.property, obj, true);
/* */ }
/* */
/* 107 */ return (!(obj instanceof SuperRoot)) ||
/* 108 */ (((SuperRoot)obj).getOwner() != null);
/* */ }
/* 110 */ return true;
/* */ }
/* 112 */ return false;
/* */ }
/* */ }
/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\PropAdder.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/
|