use of org.eclipse.ecf.remoteserviceadmin.ui.rsa.model.ExportRegistrationNode in project ecf by eclipse.
the class RemoteServiceAdminView method updateExports.
private void updateExports(ExportedServicesRootNode exportedRoot) {
RemoteServiceAdmin rsa = getLocalRSA();
if (rsa != null && exportedRoot != null) {
exportedRoot.clearChildren();
List<ExportRegistration> exportRegistrations = rsa.getExportedRegistrations();
for (ExportRegistration er : exportRegistrations) {
ExportRegistrationNode exportRegistrationNode = new ExportRegistrationNode(er);
ExportReference eRef = (ExportReference) er.getExportReference();
if (eRef != null) {
exportRegistrationNode.addChild(new ServiceIdNode(eRef.getExportedService(), Messages.RSAView_SERVICE_ID_LABEL));
EndpointDescription ed = (EndpointDescription) eRef.getExportedEndpoint();
if (ed != null)
exportRegistrationNode.addChild(new EndpointDescriptionRSANode(ed));
}
exportedRoot.addChild(exportRegistrationNode);
}
}
}
Aggregations