* to the resource associated to the selected node.
* Display en error message (dialog) if no node is selected.
*/
protected void showReferenceDocumentation() {
try {
RemoteResourceWrapper selected =
getSelectedResourceWrapper();
if (selected == null) {
JOptionPane.showMessageDialog(this,
"No Resource selected",
"Error",
JOptionPane.ERROR_MESSAGE);
return;
} else {
String url = (String)
selected.getResource().getValue("help-url");
MiniBrowser.showDocumentationURL(url,
"Reference documentation");
}
} catch (RemoteAccessException rae) {
Message.showErrorMessage(this, rae);