Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2002-09-20 15:48:02 +0000
committerDani Megert2002-09-20 15:48:02 +0000
commit7a653a7e825daf117f57a8457d1d4a2c6648c992 (patch)
treee5b1283acac9540377fdf9ba936999f90bfab42d
parent1442a99aa5578854603dc01a286a1b671551e83f (diff)
downloadeclipse.platform.text-7a653a7e825daf117f57a8457d1d4a2c6648c992.tar.gz
eclipse.platform.text-7a653a7e825daf117f57a8457d1d4a2c6648c992.tar.xz
eclipse.platform.text-7a653a7e825daf117f57a8457d1d4a2c6648c992.zip
Exclude workspace as adapter resultv20020924
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewEntryAdapterFactory.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewEntryAdapterFactory.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewEntryAdapterFactory.java
index fab4cf06c..81e2ef7fe 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewEntryAdapterFactory.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewEntryAdapterFactory.java
@@ -37,7 +37,8 @@ public class SearchResultViewEntryAdapterFactory implements IAdapterFactory {
* have been attached to a project because there is no
* corresponding resource in the workspace.
*/
- if (resource.getType() != IResource.PROJECT)
+ int type= resource.getType();
+ if (type != IResource.PROJECT && type != IResource.ROOT)
return resource;
}
return null;

Back to the top