本文整理汇总了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"));
}
}
示例2: Commands
public Commands(IVsExtensionRepository repo, IVsExtensionManager manager, OleMenuCommandService mcs, IVsOutputWindowPane outputPane)
{
_repository = repo;
_manager = manager;
_mcs = mcs;
_outputPane = outputPane;
}
示例3: OutputWindowWriter
public OutputWindowWriter(DTE dte, IVsOutputWindowPane outputWindow)
{
_outputWindow = outputWindow;
_dte = dte;
_outputWindow.Clear();
}
示例4: GetPane
public int GetPane(ref Guid rguidPane, out IVsOutputWindowPane ppPane)
{
GetPaneCalled = true;
GetPaneArgumentGuidPane = rguidPane;
ppPane = GetPaneReturnValue;
return VSConstants.S_OK;
}
示例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");
}
示例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;
}
示例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);
}
示例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);
}
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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());
}
示例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");
}
示例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