public void mouseDown(org.eclipse.swt.events.MouseEvent e) {
    // TODO Auto-generated method stub
    if (e.getSource() == buttonOk) {
      String host = comboHost.getText();
      String user = comboUser.getText();
      String password = textPassword.getText();
      // String protocol = comboProtocol.getText();
	  Protocol protocol = Protocol.values()[comboProtocol.getSelectionIndex()];
      String file = textkey.getText().trim();
      ConfigSession session = new ConfigSession(host, "22", user, protocol,file, password);

      if (!host.trim().equals("") && !user.trim().equals("") && !protocol.equals("")) {
        dialog.dispose();
        MainFrame.dbm.insertCSession(session);
        if (sessionDialog != null)
          sessionDialog.loadTable();
        if (mainFrame != null)
          mainFrame.addSession(null, session);
      } else {
        MessageDialog.openInformation(dialog, "Warning", "Must set Host, User and Protocol");
      }

    } else if (e.getSource() == buttonCancel) {
      dialog.dispose();
    } else if (e.getSource() == buttonFile) {
      FileDialog fileDlg = new FileDialog(dialog, SWT.OPEN);
      fileDlg.setText("Select SSH key");
      String filePath = fileDlg.open();
      if (null != filePath) {
        textkey.setText(filePath);
      }

    }

  }