diff options
author | Chris Goldthorpe | 2010-02-09 23:16:42 +0000 |
---|---|---|
committer | Chris Goldthorpe | 2010-02-09 23:16:42 +0000 |
commit | 76bec69c81b997a3ab4ac2b6738e9426a62405da (patch) | |
tree | 6e904d3343d9b1c255bba1c93f052e2a4cc65f53 /org.eclipse.ui.intro | |
parent | a3c358659c4b6877d5dbf7d3b3cf7fc746191689 (diff) | |
download | eclipse.platform.ua-76bec69c81b997a3ab4ac2b6738e9426a62405da.tar.gz eclipse.platform.ua-76bec69c81b997a3ab4ac2b6738e9426a62405da.tar.xz eclipse.platform.ua-76bec69c81b997a3ab4ac2b6738e9426a62405da.zip |
Bug 301994 [intro] Standby page cannot be indexed
Diffstat (limited to 'org.eclipse.ui.intro')
-rw-r--r-- | org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java index 656714c7c..52e68d2c1 100644 --- a/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java +++ b/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/model/IntroSearchParticipant.java @@ -126,16 +126,18 @@ public class IntroSearchParticipant extends SearchParticipant { IntroPage[] pages = model.getPages(); for (int i = 0; i < pages.length; i++) { IntroPage page = pages[i]; - Bundle bundle = page.getBundle(); - String bundleId = bundle.getSymbolicName(); - String content = page.getRawContent(); - String pageId = page.getId(); - String href; - if (content != null) - href = resolveVariables(bundleId, content, locale); - else - href = pageId; - set.add("/" + bundleId + "/" + href + "?id=" + pageId); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + if (page.isDynamic()) { + Bundle bundle = page.getBundle(); + String bundleId = bundle.getSymbolicName(); + String content = page.getRawContent(); + String pageId = page.getId(); + String href; + if (content != null) + href = resolveVariables(bundleId, content, locale); + else + href = pageId; + set.add("/" + bundleId + "/" + href + "?id=" + pageId); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ + } } } |