Search in sources :

Example 1 with EndpointIntentsNode

use of org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointIntentsNode in project ecf by eclipse.

the class EndpointDiscoveryView method createEndpointDescriptionNode.

protected EndpointNode createEndpointDescriptionNode(EndpointDescription ed) {
    EndpointNode edo = new EndpointNode(ed, findImportReference(ed));
    // Interfaces
    EndpointInterfacesNode ein = new EndpointInterfacesNode();
    for (String intf : ed.getInterfaces()) ein.addChild(new EndpointPackageVersionNode(EndpointNode.getPackageName(intf)));
    edo.addChild(ein);
    // Async Interfaces (if present)
    List<String> aintfs = ed.getAsyncInterfaces();
    if (aintfs.size() > 0) {
        EndpointAsyncInterfacesNode ain = new EndpointAsyncInterfacesNode();
        for (String intf : ed.getAsyncInterfaces()) ain.addChild(new EndpointPackageVersionNode(EndpointNode.getPackageName(intf)));
        edo.addChild(ain);
    }
    // ID
    edo.addChild(new EndpointIDNode());
    // Remote Service Host
    EndpointHostGroupNode idp = new EndpointHostGroupNode(Messages.EndpointDiscoveryView_REMOTE_HOST_NAME);
    // Host children
    idp.addChild(new EndpointNamespaceNode());
    idp.addChild(new EndpointRemoteServiceIDNode());
    org.eclipse.ecf.core.identity.ID connectTarget = ed.getConnectTargetID();
    if (connectTarget != null)
        idp.addChild(new EndpointConnectTargetIDNode());
    idp.addChild(new EndpointServiceIDNode());
    idp.addChild(new EndpointIntentsNode());
    idp.addChild(new EndpointConfigTypesNode());
    idp.addChild(new EndpointFrameworkIDNode());
    idp.addChild(new EndpointTimestampNode());
    String filter = ed.getRemoteServiceFilter();
    if (filter != null)
        idp.addChild(new EndpointRemoteServiceFilterNode());
    edo.addChild(idp);
    IEndpointDescriptionLocator locator = discovery.getEndpointDescriptionLocator();
    IServiceID serviceID = (locator == null) ? null : locator.getNetworkDiscoveredServiceID(ed);
    if (serviceID != null)
        edo.addChild(new EndpointDiscoveryGroupNode(Messages.EndpointDiscoveryView_DISCOVERY_GROUP_NAME, serviceID));
    return edo;
}
Also used : EndpointIntentsNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointIntentsNode) EndpointNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointNode) AbstractEndpointNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.AbstractEndpointNode) EndpointDiscoveryGroupNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointDiscoveryGroupNode) EndpointServiceIDNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointServiceIDNode) EndpointConfigTypesNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointConfigTypesNode) EndpointInterfacesNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointInterfacesNode) EndpointIDNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointIDNode) EndpointTimestampNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointTimestampNode) EndpointRemoteServiceFilterNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointRemoteServiceFilterNode) IEndpointDescriptionLocator(org.eclipse.ecf.osgi.services.remoteserviceadmin.IEndpointDescriptionLocator) EndpointHostGroupNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointHostGroupNode) EndpointRemoteServiceIDNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointRemoteServiceIDNode) EndpointPackageVersionNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointPackageVersionNode) EndpointConnectTargetIDNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointConnectTargetIDNode) EndpointNamespaceNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointNamespaceNode) IServiceID(org.eclipse.ecf.discovery.identity.IServiceID) EndpointAsyncInterfacesNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointAsyncInterfacesNode) EndpointFrameworkIDNode(org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointFrameworkIDNode)

Aggregations

IServiceID (org.eclipse.ecf.discovery.identity.IServiceID)1 IEndpointDescriptionLocator (org.eclipse.ecf.osgi.services.remoteserviceadmin.IEndpointDescriptionLocator)1 AbstractEndpointNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.AbstractEndpointNode)1 EndpointAsyncInterfacesNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointAsyncInterfacesNode)1 EndpointConfigTypesNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointConfigTypesNode)1 EndpointConnectTargetIDNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointConnectTargetIDNode)1 EndpointDiscoveryGroupNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointDiscoveryGroupNode)1 EndpointFrameworkIDNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointFrameworkIDNode)1 EndpointHostGroupNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointHostGroupNode)1 EndpointIDNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointIDNode)1 EndpointIntentsNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointIntentsNode)1 EndpointInterfacesNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointInterfacesNode)1 EndpointNamespaceNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointNamespaceNode)1 EndpointNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointNode)1 EndpointPackageVersionNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointPackageVersionNode)1 EndpointRemoteServiceFilterNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointRemoteServiceFilterNode)1 EndpointRemoteServiceIDNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointRemoteServiceIDNode)1 EndpointServiceIDNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointServiceIDNode)1 EndpointTimestampNode (org.eclipse.ecf.remoteserviceadmin.ui.endpoint.model.EndpointTimestampNode)1