I am binding list of items to the toolwindow from database,when i click the item, corresponding item name editor tab opens but when i click the same item i want to Focus(Active) the same editor tab.It should not open the new tab.I am using following code to open the editor.
string name = item.name + ". ";
string path = @"VSkbEditor Files\VSkbEditor";
DTE ppHier = (DTE)Microsoft.VisualStudio.Shell.Package.GetGlobalService(typeof(DTE));
ppHier.ItemOperations.NewFile(path, name, EnvDTE.Constants.vsViewKindDesigner);
Thanks in advance.