use of org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.ImportRegistrationNode in project ecf by eclipse.
the class RemoteServiceAdminView method updateImports.
private void updateImports(ImportedEndpointsRootNode importedRoot) {
RemoteServiceAdmin rsa = getLocalRSA();
if (rsa != null && importedRoot != null) {
importedRoot.clearChildren();
List<ImportRegistration> importRegistrations = rsa.getImportedRegistrations();
for (ImportRegistration ir : importRegistrations) {
ImportRegistrationNode importRegistrationNode = new ImportRegistrationNode(ir);
ImportReference iRef = (ImportReference) ir.getImportReference();
if (iRef != null) {
importRegistrationNode.addChild(new ServiceIdNode(iRef.getImportedService(), Messages.RSAView_PROXY_SERVICE_ID_LABEL));
EndpointDescription ed = (EndpointDescription) iRef.getImportedEndpoint();
if (ed != null)
importRegistrationNode.addChild(new EndpointDescriptionRSANode(ed, ir));
}
importedRoot.addChild(importRegistrationNode);
}
}
}
Aggregations