code: function setCurrentDocument(doc) {
          DeprecationWarning.deprecationWarning("Use CommandManager.execute(Commands.CMD_OPEN) instead of DocumentManager.setCurrentDocument()", true);
          CommandManager.execute(Commands.CMD_OPEN, {fullPath: doc.file.fullPath});
      }
docs: opens the specified document for editing in the currently active pane
  @deprecated use CommandManager.execute(Commands.CMD_OPEN, {fullPath: doc.file.fullPath}) instead
  @param {!Document} document  The Document to make current.