private ITfsLocater DerivePackageByVisualStudioVersion() { ITfsLocater results = null; int version = DetermineVisualStudioVersionNumber(); switch (version) { case 10: results = new Vs2010Locater(this); break; case 11: results = new Vs2012DispatchingLocater(this); break; case 12: results = new Vs2013DispatchingLocater(this); break; case 14: results = new Vs2013DispatchingLocater(this); break; case 15: results = new Vs2013DispatchingLocater(this); break; } return(results); }
///////////////////////////////////////////////////////////////////////////// // Overriden Package Implementation /// <summary> /// Initialization of the package; this method is called right after the package is sited, so this is the place /// where you can put all the initilaization code that rely on services provided by VisualStudio. /// </summary> protected override void Initialize() { _initialized = true; Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", this.ToString())); base.Initialize(); LocaterPackage = DerivePackageByVisualStudioVersion(); if (LocaterPackage != null) { LocaterPackage.Initialize(); } }
///////////////////////////////////////////////////////////////////////////// // Overriden Package Implementation /// <summary> /// Initialization of the package; this method is called right after the package is sited, so this is the place /// where you can put all the initilaization code that rely on services provided by VisualStudio. /// </summary> protected override void Initialize() { _initialized = true; Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", this.ToString())); base.Initialize(); LocaterPackage = DerivePackageByVisualStudioVersion(); if (LocaterPackage != null) { LocaterPackage.Initialize(); } }
public ActiveWindowLocateCommand(ITfsLocater locater, ILocateInTfsVsPackage pkg) : base(locater, pkg) { }
public SolutionExplorerLocateCommand(ITfsLocater locater, ILocateInTfsVsPackage pkg) : base(locater, pkg) { }
public LocateCommand(ITfsLocater locater, ILocateInTfsVsPackage pkg) { Locater = locater; Package = pkg; }
public ActiveWindowLocateCommand(ITfsLocater locater, ILocateInTfsVsPackage pkg) : base(locater, pkg) { }
public SolutionExplorerLocateCommand(ITfsLocater locater, ILocateInTfsVsPackage pkg) : base(locater, pkg) { }
public LocateCommand(ITfsLocater locater, ILocateInTfsVsPackage pkg) { Locater = locater; Package = pkg; }