Use the new DObject.changeAttribute() instead of hand-constructing an

AttributeChangedEvent which is no longer allowed.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3286 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2004-12-28 03:49:23 +00:00
parent 1fde5f69c0
commit 9386fabeee
@@ -173,10 +173,7 @@ public class FieldEditor extends JPanel
// submit an attribute changed event with the new value
if (value != null) {
try {
AttributeChangedEvent ace = new AttributeChangedEvent(
_object.getOid(), _field.getName(), value,
_object.getAttribute(_field.getName()));
_ctx.getDObjectManager().postEvent(ace);
_object.changeAttribute(_field.getName(), value);
} catch (ObjectAccessException oae) {
Log.warning("Failed to update field " + _field.getName() +
": "+ oae);