/**
   * ����¼�����,��ȡ��ǰ�������ı�ؼ�
   *
   * @param e --�¼�����
   * @return --�������ı�ؼ�
   */
  protected DataSetTable getCurrentTable(ActionEvent e) {
    if (!(e.getSource() instanceof JMenuItem)) return null;

    JPopupMenu popMenu = GUIUtil.getTopMenu((JMenuItem) e.getSource());
    if (popMenu == null) return null;

    DataSetTable table = (DataSetTable) popMenu.getClientProperty(ResultSetView.DataTable);
    if (table == null) {
      LogProxy.errorMessage("can't get data table object!");
      return null;
    }

    return table;
  }
  @Override
  public JPopupMenu initLogviewPopupMenu() {
    JPopupMenu menu = super.initLogviewPopupMenu();

    menu.addSeparator();
    addMenuItem(menu, FIND);
    addMenuItem(menu, FINDNEXT);
    addMenuItem(menu, FINDPREVIOUS);

    menu.addSeparator();
    addMenuItem(menu, VIEWHELP);
    addMenuItem(menu, VIEWSOURCE);

    menu.addSeparator();
    addMenuItem(menu, STOPEVAL);

    JMenu historymenu = (JMenu) menu.getClientProperty(HISTORYMENU);

    addMenuItem(historymenu, LOADHISTORY);
    addMenuItem(historymenu, SAVEHISTORY);

    return menu;
  }