diff options
author | Chris Goldthorpe | 2011-01-17 21:07:16 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2011-01-17 21:07:16 +0000 |
commit | 9ceea939afedc787b748d6310665305b87cfd4c9 (patch) | |
tree | 1e2d6a552b72dcea24ca4f33afbeacd89e18d6bf /org.eclipse.help.ui/src | |
parent | f3d05e01dd3c0ea8eacc60b310087d2df24a2cd8 (diff) | |
download | eclipse.platform.ua-9ceea939afedc787b748d6310665305b87cfd4c9.tar.gz eclipse.platform.ua-9ceea939afedc787b748d6310665305b87cfd4c9.tar.xz eclipse.platform.ua-9ceea939afedc787b748d6310665305b87cfd4c9.zip |
Bug 334444 - [Help] Scope dialog from Help View should be resizeable
Diffstat (limited to 'org.eclipse.help.ui/src')
-rw-r--r-- | org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/LocalScopeDialog.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/LocalScopeDialog.java b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/LocalScopeDialog.java index 39e5a9b8b..1cb925394 100644 --- a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/LocalScopeDialog.java +++ b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/LocalScopeDialog.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. + * Copyright (c) 2010, 2011 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -15,6 +15,7 @@ import org.eclipse.jface.dialogs.TrayDialog; import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.preference.PreferenceManager; import org.eclipse.jface.preference.PreferencePage; +import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Shell; @@ -36,6 +37,10 @@ public class LocalScopeDialog extends TrayDialog { this.scopeSet = set; } + protected boolean isResizable() { + return true; + } + protected Control createDialogArea(Composite parent) { EngineDescriptor localSearchDesc = null; for (int i = 0; localSearchDesc == null && i < descManager.getDescriptors().length; i++) { @@ -50,7 +55,10 @@ public class LocalScopeDialog extends TrayDialog { localHelpPage.setDescription(localSearchDesc.getDescription()); localHelpPage.setPreferenceStore(preferenceStore); localHelpPage.createControl(parent); - return localHelpPage.getControl(); + Control helpPageControl = localHelpPage.getControl(); + GridData layoutData = new GridData(GridData.FILL_BOTH); + helpPageControl.setLayoutData(layoutData); + return helpPageControl; } protected void okPressed() { |