menuManager = new MenuManager();
subscribeAction = new BaseSelectionListenerAction("Subscribe") {
public void run() {
PublishedServiceDescriptor desc = (PublishedServiceDescriptor) getStructuredSelection().getFirstElement();
IPublishedServiceRequestor requestor = (IPublishedServiceRequestor) container.getAdapter(IPublishedServiceRequestor.class);
requestor.subscribe(desc.getContainerID(), desc.getSharedObjectID(), new SubscriptionViewOpener());
}
protected boolean updateSelection(IStructuredSelection selection) {
return !selection.isEmpty();
}