# HG changeset patch # User dadubrow # Date 1276615311 18000 # Node ID 6eab8978b7d597dd986b8bb85c0e499d69222d11 # Parent f3c18a46b6c5925e05592093c0172f7f12235380 bug 11485 - don't include installed items in check all action diff -r f3c18a46b6c5 -r 6eab8978b7d5 core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/discovery/ui/view/DiscoveryView.java --- 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 catalogItems = viewer.getCatalog().getItems(); + List catalogItems = new ArrayList(); + for (CatalogItem catalogItem : viewer.getCatalog().getItems()) { + if (!catalogItem.isInstalled()) + catalogItems.add(catalogItem); + } return new StructuredSelection(catalogItems); }