package NET.worlds.scape; class PropPropEditorDialog extends ListChooserDialog { private SuperRoot _target; private Property _property; private boolean _nullHandling; PropPropEditorDialog(EditTile parent, String title, Property property, SuperRoot target, boolean nullHandling) { super(parent, title); this._target = target; this._property = property; this._nullHandling = nullHandling; this.ready(); } @Override protected String getEntry(int index) { Property p = null; try { p = (Property)this._target.properties(index, 0, 0, null); } catch (NoSuchPropertyException var4) { } return p == null ? null : p.getName(); } @Override protected int getSelected() { if (this._property == null) { return -1; } else { Property val = (Property)this._property.get(); return val == null ? -1 : val.getIndex(); } } @Override protected boolean setValue(String text, int index) { if (index == -1 && !this._nullHandling) { return false; } else { Object val = null; try { val = this._target.properties(index, 0, 0, null); } catch (NoSuchPropertyException var5) { assert false; } this._parent.addUndoableSet(this._property, val); return true; } } }