Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-05-14 06:28:51 +0000
committerUwe Stieber2012-05-14 07:09:52 +0000
commit052815f503d2717a920283facaf140b4dc3bfa24 (patch)
tree2d794f5cdf572ec38d0ace59c98ef6c86d0dbb95 /target_explorer
parentc30f63c097b6aadb85ec892f9518bcc4ff2d0874 (diff)
downloadorg.eclipse.tcf-052815f503d2717a920283facaf140b4dc3bfa24.tar.gz
org.eclipse.tcf-052815f503d2717a920283facaf140b4dc3bfa24.tar.xz
org.eclipse.tcf-052815f503d2717a920283facaf140b4dc3bfa24.zip
Target Explorer: Filter value-add nodes from launch context selector control
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/launchcontext/ContextSelectorControl.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/launchcontext/ContextSelectorControl.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/launchcontext/ContextSelectorControl.java
index c0b49b183..ec898e766 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/launchcontext/ContextSelectorControl.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/remote/app/launchcontext/ContextSelectorControl.java
@@ -10,13 +10,19 @@
package org.eclipse.tcf.te.tcf.launch.ui.remote.app.launchcontext;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+
import org.eclipse.jface.dialogs.IDialogPage;
import org.eclipse.jface.viewers.DecoratingLabelProvider;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.TreeViewer;
+import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.swt.graphics.Image;
import org.eclipse.tcf.te.launch.ui.tabs.launchcontext.AbstractContextSelectorControl;
+import org.eclipse.tcf.te.tcf.ui.filter.ValueAddFilter;
import org.eclipse.tcf.te.tcf.ui.navigator.ContentProviderDelegate;
import org.eclipse.tcf.te.tcf.ui.navigator.LabelProviderDelegate;
import org.eclipse.tcf.te.ui.views.interfaces.ICategory;
@@ -83,4 +89,19 @@ public class ContextSelectorControl extends AbstractContextSelectorControl {
LabelProvider labelProvider = new LabelProvider();
viewer.setLabelProvider(new DecoratingLabelProvider(labelProvider, labelProvider));
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.tcf.te.launch.ui.tabs.launchcontext.AbstractContextSelectorControl#doCreateViewerFilters()
+ */
+ @Override
+ protected ViewerFilter[] doCreateViewerFilters() {
+ ViewerFilter[] filters = super.doCreateViewerFilters();
+
+ List<ViewerFilter> newFilters = new ArrayList<ViewerFilter>();
+ if (filters != null) newFilters.addAll(Arrays.asList(filters));
+
+ newFilters.add(new ValueAddFilter());
+
+ return newFilters.toArray(new ViewerFilter[newFilters.size()]);
+ }
}

Back to the top