Menu menu = menuManager.createContextMenu(instancesViewer.getControl());
instancesViewer.getControl().setMenu(menu);
if (Platform.getBundle("org.eclipse.rse.ui") != null) { //$NON-NLS-1$
final ConfigureRemoteCloudFoundryAction configAction = new ConfigureRemoteCloudFoundryAction(cloudServer);
Link configLink = new Link(client, SWT.NONE);
configLink.setText(Messages.ApplicationDetailsPart_TEXT_SHOW_IN_REMOTE_VIEW);
configLink.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
configAction.run();
}
});
}
}