コード例 #1
0
ファイル: LogWindow.cs プロジェクト: bQvle/Sqline
 public LogWindow(Package package, AddinContext context)
 {
     FPackage  = package;
     FContext  = context;
     FWindow   = context.Application.ToolWindows.OutputWindow.OutputWindowPanes.Item("Build");
     FProvider = new ErrorListProvider(FPackage);
     FProvider.ProviderGuid = GuidList.guidSqlinePkg;
     FProvider.ProviderName = "Sqline";
     FVsSolution            = (IVsSolution)Package.GetGlobalService(typeof(IVsSolution));
 }
コード例 #2
0
ファイル: SqlinePackage.cs プロジェクト: bQvle/Sqline
        protected override async System.Threading.Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress <ServiceProgressData> progress)
        {
            FContext        = new AddinContext((DTE2)GetService(typeof(SDTE)), this);
            FLog            = new LogWindow(this, FContext);
            FDocumentEvents = Context.Application.Events.get_DocumentEvents(null);
            FDocumentEvents.DocumentSaved += OnDocumentSaved;
            FContext.Application.Events.BuildEvents.OnBuildDone  += BuildEvents_OnBuildDone;
            FContext.Application.Events.BuildEvents.OnBuildBegin += OnBuildBegin;

            await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);

            await base.InitializeAsync(cancellationToken, progress);
        }
コード例 #3
0
 public ItemFileGenerator(AddinContext context, Document document)
 {
     FContext  = context;
     FDocument = document;
     FFileInfo = new FileInfo(FDocument.FullName).GetCorrectlyCasedFileInfo();
 }
コード例 #4
0
 public DataItemGenerator(AddinContext context, Project project)
 {
     FContext = context;
     FProject = project;
 }
コード例 #5
0
 public ProjectHandlerGenerator(AddinContext context, Project project)
 {
     FContext = context;
     FProject = project;
 }