Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Chen2012-05-28 08:36:28 +0000
committerWilliam Chen2012-05-28 08:36:28 +0000
commit4b5f4ecd71347dc8b5460ddd8c20516f8e6b7213 (patch)
tree9b4e123cee4ea0a443e72968f3006a3c9cdb5bac /target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui
parentb8161411c6f132efc58bc77a995f9433e2f4bdce (diff)
downloadorg.eclipse.tcf-4b5f4ecd71347dc8b5460ddd8c20516f8e6b7213.tar.gz
org.eclipse.tcf-4b5f4ecd71347dc8b5460ddd8c20516f8e6b7213.tar.xz
org.eclipse.tcf-4b5f4ecd71347dc8b5460ddd8c20516f8e6b7213.zip
Target Explorer: 380795: [TCF][UI] Decorate the node that are being
filtered in Target Explorer and relative editors.
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml3
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/ViewerInputAdapterFactory.java10
2 files changed, 10 insertions, 3 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml
index 4a424b9a4..4fe977519 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml
@@ -1876,6 +1876,9 @@
<adapter
type="org.eclipse.tcf.te.core.interfaces.IViewerInput">
</adapter>
+ <adapter
+ type="org.eclipse.tcf.te.core.interfaces.IPropertyChangeProvider">
+ </adapter>
</factory>
</extension>
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/ViewerInputAdapterFactory.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/ViewerInputAdapterFactory.java
index 3272e8fca..9ea010e75 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/ViewerInputAdapterFactory.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/src/org/eclipse/tcf/te/tcf/filesystem/ui/internal/adapters/ViewerInputAdapterFactory.java
@@ -13,6 +13,7 @@ import java.util.concurrent.atomic.AtomicReference;
import org.eclipse.core.runtime.IAdapterFactory;
import org.eclipse.tcf.protocol.Protocol;
+import org.eclipse.tcf.te.core.interfaces.IPropertyChangeProvider;
import org.eclipse.tcf.te.core.interfaces.IViewerInput;
import org.eclipse.tcf.te.tcf.filesystem.ui.activator.UIPlugin;
import org.eclipse.tcf.te.tcf.locator.interfaces.nodes.IPeerModel;
@@ -31,8 +32,11 @@ public class ViewerInputAdapterFactory implements IAdapterFactory {
@Override
public Object getAdapter(Object adaptableObject, Class adapterType) {
if(adaptableObject instanceof IPeerModel) {
- IPeerModel peerModel = (IPeerModel) adaptableObject;
- return getViewerInput(peerModel);
+ if (IViewerInput.class.equals(adapterType)
+ || IPropertyChangeProvider.class.equals(adapterType)) {
+ IPeerModel peerModel = (IPeerModel) adaptableObject;
+ return getViewerInput(peerModel);
+ }
}
return null;
}
@@ -71,7 +75,7 @@ public class ViewerInputAdapterFactory implements IAdapterFactory {
*/
@Override
public Class[] getAdapterList() {
- return new Class[] { IViewerInput.class };
+ return new Class[] { IViewerInput.class, IPropertyChangeProvider.class };
}
}

Back to the top