diff options
author | Chris Goldthorpe | 2011-04-01 17:06:52 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2011-04-01 17:06:52 +0000 |
commit | 473fcc382379da82d83ca5b65d48e43dbda1176a (patch) | |
tree | bcd10df3a37684a90209c9e908b3e477975be05e /org.eclipse.help.ui | |
parent | 93b3e21520b53e9013f4af838df5139bdb562625 (diff) | |
download | eclipse.platform.ua-473fcc382379da82d83ca5b65d48e43dbda1176a.tar.gz eclipse.platform.ua-473fcc382379da82d83ca5b65d48e43dbda1176a.tar.xz eclipse.platform.ua-473fcc382379da82d83ca5b65d48e43dbda1176a.zip |
Bug 341649 - [Help] Help/Search does not give focus to the typein area
Diffstat (limited to 'org.eclipse.help.ui')
-rw-r--r-- | org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/ReusableHelpPart.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/ReusableHelpPart.java b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/ReusableHelpPart.java index b77e3b066..4d6b1e20e 100644 --- a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/ReusableHelpPart.java +++ b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/ReusableHelpPart.java @@ -547,10 +547,14 @@ public class ReusableHelpPart implements IHelpUIConstants, } public void setFocus() { - if (partRecs.size() == 0) - return; - PartRec rec = (PartRec) partRecs.get(0); - rec.part.setFocus(); + // Focus on the first part that is not the see also links + for (int focusPart = 0; focusPart < partRecs.size(); focusPart++) { + PartRec rec = (PartRec) partRecs.get(focusPart); + if ( rec.part.getId() != IHelpUIConstants.HV_SEE_ALSO ) { + rec.part.setFocus(); + return; + } + } } } |