/// <summary> /// Constructor that calls the Microsoft.VisualStudio.Shell.WindowPane constructor then /// our initialization functions. /// </summary> /// <param name="package">Our Package instance.</param> public EtoPreviewPane(EtoPreviewPackage package, string fileName, IVsTextLines textBuffer) : base(null) { this.package = package; this.textBuffer = textBuffer; FileName = fileName; builderInfo = BuilderInfo.Find(fileName); if (builderInfo == null) { throw new Exception(string.Format("Could not find builder for file {0}", fileName)); } builder = builderInfo.CreateBuilder(); SetupCommands(); }
public EditorFactory(EtoPreviewPackage package) { this.editorPackage = package; }