enableOnBrowserTreeSelection(new Class[] { DestinationConfigTreeNode.class, HermesTreeNode.class }, this, true);
}
public void actionPerformed(ActionEvent arg0) {
final BrowserTree browserTree = HermesBrowser.getBrowser().getBrowserTree();
if (browserTree.getSelectionPath().getLastPathComponent() instanceof DestinationConfigTreeNode) {
final DestinationConfigTreeNode destinationNode = (DestinationConfigTreeNode) browserTree.getSelectionPath().getLastPathComponent();
final HermesTreeNode hermesNode = (HermesTreeNode) destinationNode.getHermesTreeNode();
final QueueSearchDialog dialog = new QueueSearchDialog(HermesBrowser.getBrowser(), hermesNode.getHermes(), (DestinationConfig) destinationNode.getBean(), searchUserHeader);
dialog.setLocationRelativeTo(null);
dialog.show();
} else if (browserTree.getSelectionPath().getLastPathComponent() instanceof HermesTreeNode) {
final HermesTreeNode hermesNode = (HermesTreeNode) browserTree.getSelectionPath().getLastPathComponent();
final QueueSearchDialog dialog = new QueueSearchDialog(HermesBrowser.getBrowser(), hermesNode.getHermes());
JideSwingUtilities.centerWindow(dialog);
dialog.show();