From 7f82d20a65d3841aac089e7df4bb8fe2d30da1b0 Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Sun, 9 Jan 2011 19:43:23 -0800 Subject: [PATCH] Use Reference Chooser rather than String dialog for "Edit Text" Fix 13880: Dialog opened by contextual properties menu item should be the reference chooser. Change-Id: I88d994271217c96985a0e18c84efc16a232c2bd4 --- .../src/com/android/ide/common/layout/BaseViewRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/BaseViewRule.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/BaseViewRule.java index 8346d6eb4..131bf7a4b 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/BaseViewRule.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/BaseViewRule.java @@ -186,7 +186,7 @@ public class BaseViewRule implements IViewRule { } else if (fullActionId.equals(EDIT_TEXT_ID)) { String oldText = node.getStringAttr(ANDROID_URI, ATTR_TEXT); oldText = ensureValidString(oldText); - String newText = mRulesEngine.displayInput("New Text:", oldText, null); + String newText = mRulesEngine.displayReferenceInput(oldText); if (newText != null) { node.editXml("Change text", new PropertySettingNodeHandler(ANDROID_URI, ATTR_TEXT, newText)); -- 2.11.0