private void showContextMenu(int selectedRow, TreePath selectedPath, MouseEvent e) {
		m_lastSelectedTreeNode = (DefaultMutableTreeNode) selectedPath.getLastPathComponent();
		if (!m_lastSelectedTreeNode.isRoot())
			m_lastParentSelectedTreeNode = (DefaultMutableTreeNode) selectedPath.getParentPath().getLastPathComponent();

		if (m_lastSelectedTreeNode.isRoot()) // root node.
			rootActionMenu(e);
		else if (m_lastSelectedTreeNode.getLevel() == 1) // Task list
			taskListMenu(e);
		else if (m_lastSelectedTreeNode.getLevel() == 2) // Task name
			taskMenu(e);
	}