Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2001-10-24 05:47:11 -0400
committerDani Megert2001-10-24 05:47:11 -0400
commite93a9676d8bf42c0320212597b7772d80ec1e1dc (patch)
tree09db775dc9edb2cb01e1163efd72b1f3dfefd990
parent3309c868e5977fb4d8fd11ad7d9e6ce64d6c8bff (diff)
downloadeclipse.platform.text-e93a9676d8bf42c0320212597b7772d80ec1e1dc.tar.gz
eclipse.platform.text-e93a9676d8bf42c0320212597b7772d80ec1e1dc.tar.xz
eclipse.platform.text-e93a9676d8bf42c0320212597b7772d80ec1e1dc.zip
Fixed 5098: Search Text page: Button margin & Mnemonics
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchPage.java36
1 files changed, 20 insertions, 16 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchPage.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchPage.java
index 6e6d5f6ca..cb1ff7d3e 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchPage.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/text/TextSearchPage.java
@@ -4,15 +4,21 @@
*/
package org.eclipse.search.internal.ui.text;
-import java.io.IOException;
import java.io.BufferedReader;
+import java.io.IOException;
import java.io.StringReader;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
-
import java.util.Set;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IAdaptable;
+
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
@@ -34,31 +40,28 @@ import org.eclipse.jface.dialogs.DialogPage;
import org.eclipse.jface.dialogs.ProgressMonitorDialog;
import org.eclipse.jface.operation.IRunnableContext;
import org.eclipse.jface.text.ITextSelection;
-import org.eclipse.jface.text.TextSelection;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IMarker;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IFileEditorInput;
-import org.eclipse.ui.help.WorkbenchHelp; import org.eclipse.ui.model.IWorkbenchAdapter;
+import org.eclipse.ui.help.WorkbenchHelp;
+import org.eclipse.ui.model.IWorkbenchAdapter;
-import org.eclipse.search.internal.core.text.TextSearchScope;
-import org.eclipse.search.internal.ui.ISearchHelpContextIds; import org.eclipse.search.internal.ui.SearchPlugin;
-import org.eclipse.search.internal.ui.util.ExceptionHandler;
-import org.eclipse.search.internal.ui.util.FileTypeEditor;
-import org.eclipse.search.internal.ui.util.RowLayouter;
import org.eclipse.search.ui.ISearchPage;
import org.eclipse.search.ui.ISearchPageContainer;
import org.eclipse.search.ui.ISearchResultViewEntry;
import org.eclipse.search.ui.IWorkingSet;
import org.eclipse.search.ui.SearchUI;
+
+import org.eclipse.search.internal.core.text.TextSearchScope;
+import org.eclipse.search.internal.ui.ISearchHelpContextIds;
import org.eclipse.search.internal.ui.SearchMessages;
+import org.eclipse.search.internal.ui.SearchPlugin;
+import org.eclipse.search.internal.ui.util.ExceptionHandler;
+import org.eclipse.search.internal.ui.util.FileTypeEditor;
+import org.eclipse.search.internal.ui.util.RowLayouter;
+import org.eclipse.search.internal.ui.util.SWTUtil;
public class TextSearchPage extends DialogPage implements ISearchPage {
@@ -403,13 +406,14 @@ public class TextSearchPage extends DialogPage implements ISearchPage {
fExtensions= new Text(result, SWT.LEFT | SWT.BORDER);
- // 1GF90TL: ITPJUI:ALL - Search dialog is missing a width hint
GridData gd= new GridData(GridData.FILL_HORIZONTAL);
gd.widthHint= convertWidthInCharsToPixels(30);
fExtensions.setLayoutData(gd);
Button button= new Button(result, SWT.PUSH);
button.setText(SearchMessages.getString("SearchPage.browse")); //$NON-NLS-1$
+ button.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));
+ SWTUtil.setButtonDimensionHint(button);
fFileTypeEditor= new FileTypeEditor(
SearchPlugin.getDefault().getWorkbench().getEditorRegistry(),

Back to the top