Пример #1
0
        /// <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();
        }
Пример #2
0
 public EditorFactory(EtoPreviewPackage package)
 {
     this.editorPackage = package;
 }