From 93b9cd72c1f9640e82fd0a0d504ae2994ad524ac Mon Sep 17 00:00:00 2001 From: "Ray J. Greenwell" Date: Fri, 20 Mar 2026 14:34:14 -0700 Subject: [PATCH] Inline the method so I don't have to correct the comment. It's so small now anyway. --- .../admin/client/ObjectEditorPanel.java | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) 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;