Пример #1
0
 public Compiler(EventBus eventBus)
 {
     _EventBus = eventBus;
     _BuildEvents = _EventBus.DTE.Events.BuildEvents;
     _BuildEvents.OnBuildBegin += new _dispBuildEvents_OnBuildBeginEventHandler(BuildEvents_OnBuildBegin);
     _BuildEvents.OnBuildProjConfigBegin += new _dispBuildEvents_OnBuildProjConfigBeginEventHandler(BuildEvents_OnBuildProjConfigBegin);
 }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="dte">Instance of DTE to get the Output Window and Status Bar from</param>
 /// 
 public CompilerStatus(EventBus eventBus)
 {
     _EventBus = eventBus;
     _DTE = _EventBus.DTE;
     _OutputWindow = _DTE.ToolWindows.OutputWindow.OutputWindowPanes.Item("Build");
     _StatusBar = _DTE.StatusBar;
 }
Пример #3
0
        public ErrorList(EventBus eventBus)
        {
            _EventBus = eventBus;

            // Setup the error list controller, which will update the IDE error list with
            // error coming back from the closure compiler.
            _ErrorListProvider = new Microsoft.VisualStudio.Shell.ErrorListProvider(_EventBus.Package);
            _ErrorListProvider.ProviderGuid = SoftGPL.vs10.GuidList.guidvs10Pkg;
            _ErrorListProvider.ProviderName = "SoftGPL.gcVS10";
        }
Пример #4
0
 void DTEEvents_OnStartupComplete()
 {
     if (_EventBus == null)
     {
         // We have to create the event bus once the vspackage is fully loaded in order to
         // properly get an instance of the view model which is created by the options window...
         // This options window cannot be created once the IDE is loaded.
         _EventBus = new Controller.EventBus(this, MainViewModel);
     }
 }
Пример #5
0
 public Document(EventBus eventBus)
 {
     _EventBus = eventBus;
 }