public void actionPerformed(ActionEvent e)
{
try
{
final BrowseContextAction browseContext = (BrowseContextAction) HermesBrowser.getBrowser().getDocumentPane().getActiveDocument();
final Set<AbstractTreeNode> treeNodes = new HashSet<AbstractTreeNode>();
if (browseContext.getContextTree().getSelectionPaths() != null)
{
for (final TreePath treePath : browseContext.getContextTree().getSelectionPaths())
{
if (treePath.getLastPathComponent() instanceof AbstractTreeNode)
{
treeNodes.add((AbstractTreeNode) treePath.getLastPathComponent());
}