Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Focus on the editor Tab which is already opened (vspackage)

$
0
0

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.


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>