Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java
index 65835a557..ad2f25988 100644
--- a/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java
+++ b/framework/bundles/org.eclipse.ecf.remoteservice.ui/src/org/eclipse/ecf/remoteserviceadmin/ui/endpoint/EndpointDiscoveryView.java
@@ -499,14 +499,20 @@ public class EndpointDiscoveryView extends ViewPart {
if (treeViewer == null) return;
switch (type) {
case RemoteServiceAdminEvent.IMPORT_UNREGISTRATION:
- final ImportReference iRef = (ImportReference) event.getImportReference();
- if (iRef != null) {
+ final ImportReference ir = (ImportReference) event.getImportReference();
+ if (ir != null) {
treeViewer.getControl().getDisplay().asyncExec(new Runnable() {
@Override
public void run() {
- EndpointNode en = findEndpointNode(iRef);
- if (en != null)
- en.setImportReference(null);
+ EndpointGroupNode egn = contentProvider.getRootNode();
+ for(AbstractEndpointNode aen: egn.getChildren()) {
+ if (aen instanceof EndpointNode) {
+ EndpointNode en = (EndpointNode) aen;
+ ImportReference iRef = en.getImportReference();
+ if (iRef != null && iRef.equals(ir))
+ en.setImportReference(null);
+ }
+ }
viewer.refresh();
}});
}

Back to the top