当前位置: 首页>>代码示例>>C#>>正文


C# IVsOutputWindowPane类代码示例

本文整理汇总了C#中IVsOutputWindowPane的典型用法代码示例。如果您正苦于以下问题:C# IVsOutputWindowPane类的具体用法?C# IVsOutputWindowPane怎么用?C# IVsOutputWindowPane使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IVsOutputWindowPane类属于命名空间,在下文中一共展示了IVsOutputWindowPane类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PrintOutput

 /// <summary>
 /// Prints messages to the package manager output window
 /// </summary>
 /// <param name="message">Message to print</param>
 /// <param name="pane">Pane object</param>
 public static void PrintOutput(string message, IVsOutputWindowPane pane)
 {
     if(pane != null)
     {
         ErrorHandler.ThrowOnFailure(pane.OutputString(message + "\n"));
     }
 }
开发者ID:munyirik,项目名称:ntvsiot,代码行数:12,代码来源:NpmHandler.cs

示例2: Commands

 public Commands(IVsExtensionRepository repo, IVsExtensionManager manager, OleMenuCommandService mcs, IVsOutputWindowPane outputPane)
 {
     _repository = repo;
     _manager = manager;
     _mcs = mcs;
     _outputPane = outputPane;
 }
开发者ID:benmccallum,项目名称:BulkExtensionManager,代码行数:7,代码来源:Commands.cs

示例3: OutputWindowWriter

        public OutputWindowWriter(DTE dte, IVsOutputWindowPane outputWindow)
        {
            _outputWindow = outputWindow;
            _dte = dte;

            _outputWindow.Clear();
        }
开发者ID:AlexGhiondea,项目名称:dotnet-apiport,代码行数:7,代码来源:OutputWindowWriter.cs

示例4: GetPane

 public int GetPane(ref Guid rguidPane, out IVsOutputWindowPane ppPane)
 {
     GetPaneCalled = true;
     GetPaneArgumentGuidPane = rguidPane;
     ppPane = GetPaneReturnValue;
     return VSConstants.S_OK;
 }
开发者ID:attilah,项目名称:ProjectLinker,代码行数:7,代码来源:MockOutputWindow.cs

示例5: MSBuildRunner

 public MSBuildRunner(IServiceProvider host, string msbuild, string projectName, string buildFullFileName, IVsOutputWindowPane buildWnd)
 {
     Host = host;
     BuildFullFileName = buildFullFileName;
     MSBUILD = msbuild;
     ProjectName = projectName;
     BuildWindow = buildWnd; // host.GetOutputPane(VSConstants.BuildOutput, "Build");
 }
开发者ID:liuyuns,项目名称:sharpbuild,代码行数:8,代码来源:MSBuildRunner.cs

示例6: Compiler

 public Compiler(EnvDTE.Project proj, string file, IVsOutputWindowPane pane)
 {
     taskTimer = new TaskTimer("Compile " + file);
     project = proj;
     clTool = new VCCompilerHelper(project);
     filename = file;
     buildPane = pane;
 }
开发者ID:brandon-kohn,项目名称:Meta,代码行数:8,代码来源:Compiler.cs

示例7: NodeProvider

 /// <summary>
 /// Creates a new node provider
 /// </summary>
 /// <param name="parser"></param>
 /// <param name="buffer">buffer to watch</param>
 public NodeProvider(IVsOutputWindowPane djangoDiagnostics, IParser parser, ITextBuffer buffer)
 {
     this.djangoDiagnostics = djangoDiagnostics;
     this.parser = parser;
     this.buffer = buffer;
     filePath = ((ITextDocument)buffer.Properties[typeof(ITextDocument)]).FilePath;
     rebuildNodes(buffer.CurrentSnapshot);
     buffer.Changed += new EventHandler<TextContentChangedEventArgs>(buffer_Changed);
 }
开发者ID:IntranetFactory,项目名称:ndjango,代码行数:14,代码来源:NodeProvider.cs

示例8: Instantiate

 public static void Instantiate(IVsOutputWindowPane outputLog, IVsStatusbar statusBar)
 {
     lock (_locker)
     {
         if (_instance != null)
             throw new InvalidOperationException(string.Format("{0} of Resurrect is already instantiated.", _instance.GetType().Name));
         _instance = new Log(outputLog, statusBar);
     }
 }
开发者ID:modulexcite,项目名称:Resurrect,代码行数:9,代码来源:Log.cs

示例9: GetPane

 public int GetPane(ref Guid rguidPane, out IVsOutputWindowPane ppPane) {
     MockOutputWindowPane pane;
     if (_panes.TryGetValue(rguidPane, out pane)) {
         ppPane = pane;
         return VSConstants.S_OK;
     }
     ppPane = null;
     return VSConstants.E_FAIL;
 }
开发者ID:CforED,项目名称:Node.js-Tools-for-Visual-Studio,代码行数:9,代码来源:MockOutputWindow.cs

示例10: Build

        public override MSBuildResult Build(uint vsopts, string config, IVsOutputWindowPane output, string target)
        {
            if (output != null)
            {
                output.OutputString("Build for node.js project is not required.\n");
            }

            return MSBuildResult.Successful;
        }
开发者ID:happylancer,项目名称:node-tools,代码行数:9,代码来源:NodeProjectNode.cs

示例11: UpdatePackage

        public void UpdatePackage(string projPath, IVsOutputWindowPane pane, string platform)
        {
            Dictionary<string, string> patchMap = new Dictionary<string, string>();

            patchMap.Add(string.Format(CultureInfo.CurrentCulture, "\\uwp\\{0}\\serialport.node", platform),
                "\\node_modules\\serialport\\build\\serialport.node");

            NpmPatcher npmPatcher = new NpmPatcher();
            npmPatcher.UpdatePackage(new Uri(PatchUri), projPath, pane, Name, patchMap);
        }
开发者ID:munyirik,项目名称:ntvsiot,代码行数:10,代码来源:SerialportNpmPatcher.cs

示例12: GetPane

		public int GetPane(ref Guid rguidPane, out IVsOutputWindowPane ppPane)
		{
			// First make sure the pane was created (we may need to add standard ones in the constructor)
			if (!paneList.ContainsKey(rguidPane))
				throw new ArgumentException("Could not find the requested pane, make sure you call CreatePane first");

			// Create a pane with the correct name
			ppPane = new OutputWindowPane(paneList[rguidPane]);
			return VSConstants.S_OK;
		}
开发者ID:RainsSoft,项目名称:StyleCop,代码行数:10,代码来源:OutputWindowService.cs

示例13: MSBuildRunner

        public MSBuildRunner(IServiceProvider host, string msbuild, string projectName, string buildFullFileName, IVsOutputWindowPane buildWnd)
        {
            Host = host;
            BuildFullFileName = buildFullFileName;
            MSBUILD = msbuild;
            ProjectName = projectName;
            BuildWindow = buildWnd;

            _pipename = string.Format(@"_sharponly_{0}", buildFullFileName.GetHashCode().ToString());
        }
开发者ID:boyd4y,项目名称:sharpbuild,代码行数:10,代码来源:MSBuildRunner.cs

示例14: OutputString

 public void OutputString(string message)
 {
     string title = Resource.ToolWindowTitle;
     if (_outputPane == null)
     {
     _outputPane = (IVsOutputWindowPane)Package.GetGlobalService(typeof(SVsGeneralOutputWindowPane));
     }
     _outputPane.SetName(title);
     _outputPane.OutputStringThreadSafe(message + "\n");
 }
开发者ID:i66soft,项目名称:VersionEditor,代码行数:10,代码来源:ViewModelLocator.cs

示例15:

        int IVsOutputWindow.GetPane(ref Guid rguidPane, out IVsOutputWindowPane ppPane)
        {
            if (this.panes.ContainsKey(rguidPane))
            {
                ppPane = this.panes[rguidPane];
                return VSConstants.S_OK;
            }

            ppPane = null;
            return VSConstants.E_FAIL;
        }
开发者ID:SonarSource-VisualStudio,项目名称:sonarlint-visualstudio,代码行数:11,代码来源:ConfigurableVsOutputWindow.cs


注:本文中的IVsOutputWindowPane类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。