Skip to content

Instantly share code, notes, and snippets.

View sharwell's full-sized avatar
🏠
Working from home

Sam Harwell sharwell

🏠
Working from home
  • Tunnel Vision Laboratories, LLC
  • Houston, Texas
  • X @samharwell
View GitHub Profile
@sharwell
sharwell / PredefinedOutputWindowPanes.cs
Created August 31, 2012 09:16
MEF support for the Output Window in Visual Studio 2010: PredefinedOutputWindowPanes
public static class PredefinedOutputWindowPanes
{
public static readonly string General;
public static readonly string Debug;
public static readonly string Build;
}
@sharwell
sharwell / gist:3550639
Created August 31, 2012 09:14
MEF support for the Output Window in Visual Studio 2010: Try to get existing pane
var outputWindow = OutputWindowService.TryGetPane("ANTLR IntelliSense Engine");
if (outputWindow != null)
outputWindow.WriteLine(message);
@sharwell
sharwell / gist:3550631
Created August 31, 2012 09:13
MEF support for the Output Window in Visual Studio 2010: Import IOutputWindowService
[Import]
internal IOutputWindowService OutputWindowService;
@sharwell
sharwell / Services.cs
Created August 31, 2012 09:07
MEF support for the Output Window in Visual Studio 2010: Services
namespace JavaLanguageService
{
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Utilities;
using JavaLanguageService.Panes;
public static class Services
{
[Export]
[Name("ANTLR IntelliSense Engine")]