{
if (getSelectionPath() != null)
{
if (getSelectionPath().getLastPathComponent() instanceof ExceptionTreeNode)
{
ExceptionTreeNode node = (ExceptionTreeNode) getSelectionPath().getLastPathComponent();
HermesBrowser.getBrowser().showErrorDialog(node.getException().getClass().getName() + "\n" + node.getException());
}
else if (getSelectionPath().getLastPathComponent() instanceof AbstractTreeNode)
{
AbstractTreeNode node = (AbstractTreeNode) getSelectionPath().getLastPathComponent();
if (node instanceof ContextTreeNode)
{
// NOP
}
else
{
BeanPropertyDialog dialog = new BeanPropertyDialog(HermesBrowser.getBrowser(), node.getBean(), false);
dialog.pack();
JideSwingUtilities.centerWindow(dialog);
dialog.show();
}
}