From 4f80345f71babbca8f2486519ff025400e15a0f9 Mon Sep 17 00:00:00 2001 From: Chris Recoskie Date: Tue, 20 Sep 2011 13:30:16 -0400 Subject: [PATCH] Bug 356901 - TVT/DVT3.7:TCT102: DAN: Truncation of "Case Insensitive" --- .../cdt/debug/ui/memory/search/FindReplaceDialog.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/memory/org.eclipse.cdt.debug.ui.memory.search/src/org/eclipse/cdt/debug/ui/memory/search/FindReplaceDialog.java b/memory/org.eclipse.cdt.debug.ui.memory.search/src/org/eclipse/cdt/debug/ui/memory/search/FindReplaceDialog.java index 3b68bb47714..0668fdc056a 100644 --- a/memory/org.eclipse.cdt.debug.ui.memory.search/src/org/eclipse/cdt/debug/ui/memory/search/FindReplaceDialog.java +++ b/memory/org.eclipse.cdt.debug.ui.memory.search/src/org/eclipse/cdt/debug/ui/memory/search/FindReplaceDialog.java @@ -112,6 +112,9 @@ public class FindReplaceDialog extends SelectionDialog protected final static String SEARCH_FORMAT_WRAP = "SEARCH_FORMAT_WRAP"; //$NON-NLS-1$ protected final static String SEARCH_ENABLE_FIND_NEXT = "SEARCH_ENABLE_FIND_NEXT"; //$NON-NLS-1$ + //the width of text fields of Find and Replace, increase it to 400 to fix the tvt defect 356901 + protected final static int FIND_REPLACE_TEXT_WIDTH = 400; + private IAction fFindAction = null; public FindReplaceDialog(Shell parent, IMemoryBlockExtension memoryBlock, IMemoryRenderingSite memoryView, Properties properties, IAction findAction) { @@ -549,7 +552,7 @@ public class FindReplaceDialog extends SelectionDialog fFindText = new Text(composite, SWT.BORDER); FormData data = new FormData(); data.left = new FormAttachment(fReplaceText, 0, SWT.LEFT); - data.width = 260; + data.width = FIND_REPLACE_TEXT_WIDTH; fFindText.setLayoutData(data); fFindText.setText(fProperties.getProperty(SEARCH_FIND, "")); //$NON-NLS-1$ @@ -567,7 +570,7 @@ public class FindReplaceDialog extends SelectionDialog data = new FormData(); data.top = new FormAttachment(replaceLabel, 0, SWT.CENTER); data.left = new FormAttachment(replaceLabel); - data.width = 260; + data.width = FIND_REPLACE_TEXT_WIDTH; fReplaceText.setLayoutData(data); fReplaceText.setText(fProperties.getProperty(SEARCH_REPLACE, "")); //$NON-NLS-1$