import org.freeplane.plugin.workspace.model.AWorkspaceTreeNode;
public class DefaultWorkspaceSelectionListener implements TreeSelectionListener {
public void valueChanged(TreeSelectionEvent event) {
AWorkspaceTreeNode node = (AWorkspaceTreeNode)(event.getPath().getLastPathComponent());
if(node instanceof TreeSelectionListener) {
((TreeSelectionListener)node).valueChanged(event);
}
}