src/document/DocumentManager.js
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});
    }
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});
    }
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 } ) ; }
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.
opens the specified document for editing in the currently active pane