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; } } }