From 9386fabeee480ae95ac4048f853f035cebd1eb2f Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 28 Dec 2004 03:49:23 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/admin/client/FieldEditor.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/java/com/threerings/admin/client/FieldEditor.java b/src/java/com/threerings/admin/client/FieldEditor.java index 94a3e9ac5..ff39a0032 100644 --- a/src/java/com/threerings/admin/client/FieldEditor.java +++ b/src/java/com/threerings/admin/client/FieldEditor.java @@ -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);