Checking if the file is already opened before creating a new tab.
Instead of opening a new tab for an already opened document, set the tab as activate.
Edited by Andi Sardina Ramos
Instead of opening a new tab for an already opened document, set the tab as activate.