本文整理汇总了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;未经允许,请勿转载。 |
请发表评论