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); }
/// <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; }
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"; }
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); } }
public Document(EventBus eventBus) { _EventBus = eventBus; }