if (selRow != -1 && e.isPopupTrigger()) {
tree.setSelectionRow(selRow);
Object o = tree.getLastSelectedPathComponent();
popup.removeAll();
if (o instanceof AbstractAiravataTreeNode) {
AbstractAiravataTreeNode node = ((AbstractAiravataTreeNode) o);
for (AbstractBrowserActionItem action : browserActions) {
boolean actionSupported = node.isActionSupported(action);
action.setVisible(actionSupported);
if (actionSupported) {
action.setCaption(node.getActionCaption(action));
action.setIcon(node.getActionIcon(action));
action.setDescription(node.getActionDescription(action));
popup.add(action.getMenuItem());
}
}
}