public void SetPackage(QuickOpenFilePackage package) { this.package = package; this.settings = package.Settings; searchEngine.SetPackage(package); }
public void SetPackage(QuickOpenFilePackage package) { this.settings = package.Settings; }
/// <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() { Debug.Print(string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", this.ToString())); base.Initialize(); var window = this.CreateToolWindow(typeof(QuickOpenFileToolWindow), 0) as QuickOpenFileToolWindow; window.SetPackage(this); //window.InitControl(); // Add our command handlers for menu (commands must exist in the .vsct file) OleMenuCommandService mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService; if (null != mcs) { // Create the command for the tool window CommandID toolwndCommandID = new CommandID(Guids.CmdSetGuid, (int)PkgCmdIDList.cmdidAOToolWindow); MenuCommand menuToolWin = new MenuCommand(ShowToolWindow, toolwndCommandID); mcs.AddCommand(menuToolWin); } Instance = this; }
public void SetPackage(QuickOpenFilePackage package) { control.SetPackage(package); }