code: function openFileAndAddToWorkingSet(fullPath, paneId) {
          var result = new $.Deferred(),
              promise = CommandManager.execute(Commands.CMD_ADD_TO_WORKINGSET_AND_OPEN, {fullPath: fullPath,
                                                                                    paneId: paneId});
  
          // This properly handles sending the right nofications in cases where the document
          // is already the current one. In that case we will want to notify with
          // documentSelectionFocusChange so the views change their selection
          promise.done(function (file) {
              // CMD_ADD_TO_WORKINGSET_AND_OPEN command sets the current document. Update the
              // selection focus only if doc is not null. When double-clicking on an
              // image file, we get a null doc here but we still want to keep _fileSelectionFocus
              // as PROJECT_MANAGER. Regardless of doc is null or not, call _activatePane
              // to trigger documentSelectionFocusChange event.
              _fileSelectionFocus = WORKING_SET_VIEW;
              _activatePane(paneId);
  
              result.resolve(file);
          }).fail(function (err) {
              result.reject(err);
          });
  
          return result.promise();
      }
docs: Opens the specified document if it's not already open, adds it to the working set,
  and selects it in the WorkingSetView
  @param {!fullPath}
  @param {string=} paneId - Pane in which to add the view.  If omitted, the command default is to use the ACTIVE_PANE
  @return {!$.Promise}