diff --git a/core/src/main/java/com/threerings/admin/client/ObjectEditorPanel.java b/core/src/main/java/com/threerings/admin/client/ObjectEditorPanel.java index 251cc3494..8cc692f63 100644 --- a/core/src/main/java/com/threerings/admin/client/ObjectEditorPanel.java +++ b/core/src/main/java/com/threerings/admin/client/ObjectEditorPanel.java @@ -91,7 +91,10 @@ public class ObjectEditorPanel extends ScrollablePanel // if the field is anything but a plain old public field, // we don't want to edit it if (field.getModifiers() == Modifier.PUBLIC) { - add(applyTip(object, field, _object.getEditor(_ctx, field))); + JPanel editor = _object.getEditor(_ctx, field); + add(editor); + ToolTipText tipAnno = field.getAnnotation(ToolTipText.class); + if (tipAnno != null) editor.setToolTipText(tipAnno.value()); } } @@ -108,17 +111,6 @@ public class ObjectEditorPanel extends ScrollablePanel log.warning("Unable to subscribe to config object: " + cause); } - /** - * Looks up a {@code FIELD_NAME_TIP} static String constant on the config object and applies - * it as a tooltip on the editor panel. - */ - protected static JPanel applyTip (ConfigObject object, Field field, JPanel editor) - { - ToolTipText tipAnno = field.getAnnotation(ToolTipText.class); - if (tipAnno != null) editor.setToolTipText(tipAnno.value()); - return editor; - } - protected PresentsContext _ctx; protected String _key; protected SafeSubscriber _safesub;