--- a/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/view/DiscoveryView.java Mon Jun 14 12:55:27 2010 -0500
+++ b/core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/view/DiscoveryView.java Tue Jun 15 10:21:51 2010 -0500
@@ -9,6 +9,7 @@
import java.net.URISyntaxException;
import java.net.URL;
import java.text.MessageFormat;
+import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
@@ -170,7 +171,11 @@
}
private IStructuredSelection getAllItemsSelection() {
- List<CatalogItem> catalogItems = viewer.getCatalog().getItems();
+ List<CatalogItem> catalogItems = new ArrayList<CatalogItem>();
+ for (CatalogItem catalogItem : viewer.getCatalog().getItems()) {
+ if (!catalogItem.isInstalled())
+ catalogItems.add(catalogItem);
+ }
return new StructuredSelection(catalogItems);
}