_handleAction(action) {
    switch (action.action) {
      case 'request-panel-close-tab':
        this.app.closeWorkspaceTab(this._getTabClickIndex());
        break;
      case 'request-panel-close-all-tabs':
        this.app.closeAllWorkspaceTabs();
        break;
      case 'request-panel-close-other-tabs':
        this.app.closeOtherWorkspaceTabs(this._getTabClickIndex());
        break;
      case 'request-panel-duplicate-tab':
        this.app.duplicateWorkspaceTab(this._getTabClickIndex());
        break;
      default:
        this._handleDefaultAction(action.action);
        break;
    }
  }
/**
   * Handles application default actions when calling main process is not
   * needed.
   *
   * @param {Object} action Action definition
   */
Handles application default actions when calling main process is not
needed.

@param {Object} action Action definition
Handles application default actions when calling main process is not needed . @param { Object } action Action definition
_handleAction(action) {
    switch (action.action) {
      case 'request-panel-close-tab':
        this.app.closeWorkspaceTab(this._getTabClickIndex());
        break;
      case 'request-panel-close-all-tabs':
        this.app.closeAllWorkspaceTabs();
        break;
      case 'request-panel-close-other-tabs':
        this.app.closeOtherWorkspaceTabs(this._getTabClickIndex());
        break;
      case 'request-panel-duplicate-tab':
        this.app.duplicateWorkspaceTab(this._getTabClickIndex());
        break;
      default:
        this._handleDefaultAction(action.action);
        break;
    }
  }
_handleAction ( action ) { switch ( action . action ) { case 'request-panel-close-tab' : this . app . closeWorkspaceTab ( this . _getTabClickIndex ( ) ) ; break ; case 'request-panel-close-all-tabs' : this . app . closeAllWorkspaceTabs ( ) ; break ; case 'request-panel-close-other-tabs' : this . app . closeOtherWorkspaceTabs ( this . _getTabClickIndex ( ) ) ; break ; case 'request-panel-duplicate-tab' : this . app . duplicateWorkspaceTab ( this . _getTabClickIndex ( ) ) ; break ; default : this . _handleDefaultAction ( action . action ) ; break ; } }
Handles application default actions when calling main process is not
 needed.
Handles application default actions when calling main process is not needed .