blob: 176275892bd085f3b73e2c7be894ef341943fa1b (
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
|
package NET.worlds.scape;
import java.util.Vector;
class CDPositionEditorDialog extends FieldWithListEditorDialog {
Property property;
CDPositionEditorDialog(EditTile parent, String title, Property property, Vector trackList) {
super(parent, title, trackList);
this.property = property;
this.ready();
}
@Override
protected String getValue() {
return "" + this.property.get();
}
@Override
protected boolean setValue(String text) {
int index = text.indexOf("#");
if (index != -1) {
text = text.substring(0, index).trim();
}
try {
this.parent.addUndoableSet(this.property, new Integer(text));
return true;
} catch (NumberFormatException var4) {
return false;
}
}
}
|