source/lib/VBDockPanel.js
// dispatch to the appropriate connection object

dispatch to the appropriate connection object
dispatch to the appropriate connection object
doConn(connId, eventName) {
    let conn = null
    if (connId < 0 && this.selectedConn) {
      conn = this.selectedConn
    }
    else {
      const connInfo = this.connInfoList.get(connId)
      if (connInfo) {
        conn = connInfo.conn
      }
    }
    if (conn) {
      try {
        switch (eventName) {
          case 'closeTab':    return this.onConnTabClose(conn)
          case 'floatTab':    return this.onFloatTab(connId)
          case 'logFile':     return conn.onLogFile()
          case 'logResume':   return conn.onLogResume()
          case 'logPause':    return conn.onLogPause()
          case 'reConnect':   return conn.onReConnect()
          case 'clearScreen': return conn.onClearScreen()
          case 'clearLine':   return conn.onClearLine()
          case 'focusInput':  return conn.onFocusInput()
          case 'findInPage':  return conn.onFindInPage()
        }
      }
      catch(e) {
        console.log('Exception in doConn', e)
      }
    }
  }
doConn ( connId , eventName ) { let conn = null if ( connId < 0 && this . selectedConn ) { conn = this . selectedConn } else { const connInfo = this . connInfoList . get ( connId ) if ( connInfo ) { conn = connInfo . conn } } if ( conn ) { try { switch ( eventName ) { case 'closeTab' : return this . onConnTabClose ( conn ) case 'floatTab' : return this . onFloatTab ( connId ) case 'logFile' : return conn . onLogFile ( ) case 'logResume' : return conn . onLogResume ( ) case 'logPause' : return conn . onLogPause ( ) case 'reConnect' : return conn . onReConnect ( ) case 'clearScreen' : return conn . onClearScreen ( ) case 'clearLine' : return conn . onClearLine ( ) case 'focusInput' : return conn . onFocusInput ( ) case 'findInPage' : return conn . onFindInPage ( ) } } catch ( e ) { console . log ( 'Exception in doConn' , e ) } } }
dispatch to the appropriate connection object
dispatch to the appropriate connection object
// A connId of -1 is used when an application menu item is selected,
 // in which case the currently-selected connection is used
 // Get the connection object reference from the connId
 // Check that the connection id was assigned a connection object
 // If the connection no longer exists, event handlers will throw
 // Handle the close event and float event here
 // Route all other events to the conn object
