• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IVsOutputWindowPane类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: BuildProfiler

 public BuildProfiler(EnvDTE.Project proj, int stackMaxSize, IVsOutputWindowPane bpane, IVsOutputWindowPane ppane, Action onFinished, string singleFile = null)
 {
     if (singleFile != null)
         onlyFile = singleFile;
     project = proj;
     clTool = new VCCompilerHelper(project);
     profilePane = ppane;
     buildPane = bpane;
     profiler = new ActiveObject(stackMaxSize);
     signalFinished = onFinished;
     Initialize();
     profiler.Signal();
 }
开发者ID:kimgr,项目名称:Meta,代码行数:13,代码来源:BuildProfiler.cs


示例17: 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;

            buffer.Changed += new EventHandler<TextContentChangedEventArgs>(buffer_Changed);
            // we need to run rebuildNodes on a separate thread. Using timer
            // for this seems to be an overkill, but we need the timer anyway so - why not
            parserTimer =
                new Timer(rebuildNodes, buffer.CurrentSnapshot, 0, Timeout.Infinite);
        }
开发者ID:IntranetFactory,项目名称:ndjango,代码行数:18,代码来源:NodeProvider.cs


示例18: IDEBuildLogger

        /// <summary>
        /// Constructor.  Inititialize member data.
        /// </summary>
        public IDEBuildLogger(IVsOutputWindowPane output, TaskProvider taskProvider, IVsHierarchy hierarchy)
        {
            if (taskProvider == null)
                throw new ArgumentNullException("taskProvider");
            if (hierarchy == null)
                throw new ArgumentNullException("hierarchy");

            this.taskProvider = taskProvider;
            this.outputWindowPane = output;
            this.hierarchy = hierarchy;
            IOleServiceProvider site;
            Microsoft.VisualStudio.ErrorHandler.ThrowOnFailure(hierarchy.GetSite(out site));
            this.serviceProvider = new ServiceProvider(site);
        }
开发者ID:Jeremiahf,项目名称:wix3,代码行数:17,代码来源:idebuildlogger.cs


示例19: UpdatePackage

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

            patchMap.Add("\\uwp\\serialport.js", "\\node_modules\\serialport\\serialport.js");
            foreach (Platform platform in Enum.GetValues(typeof(Platform)))
            {
                string platformStr = platform.ToString();
                patchMap.Add(string.Format(CultureInfo.CurrentCulture, "\\uwp\\{0}\\serialport.node", platformStr), string.Format(CultureInfo.CurrentCulture,
                    "\\node_modules\\serialport\\build\\Release\\node-{0}-win32-{1}\\serialport.node", NODE_MODULE_VERSION, (platform == Platform.x86) ? "ia32" : platformStr));      
            }

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


示例20: Output

        static Output()
        {
            const string customTitle = "EventStore";
            var outWindow = (IVsOutputWindow) Package.GetGlobalService(typeof (SVsOutputWindow));

            // Use e.g. Tools -> Create GUID to make a stable, but unique GUID for your pane.
            // Also, in a real project, this should probably be a static constant, and not a local variable
            var customGuid = new Guid(EventStoreOutputWindowGuid);
            outWindow.CreatePane(ref customGuid, customTitle, 1, 1);

            IVsOutputWindowPane customPane;
            outWindow.GetPane(ref customGuid, out customPane);

            Pane = customPane;
        }
开发者ID:AlexeyRaga,项目名称:esvstools,代码行数:15,代码来源:OutputWindows.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IVsPackageManager类代码示例发布时间:2022-05-24
下一篇:
C# IVsHierarchy类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap