Exemplo n.º 1
0
        /// <summary>
        /// Initialize the snippet codeWindowHost
        /// initialize private variables
        /// tell the codewindow that we are its parent so he can site us
        /// </summary>
        /// <param name="sacPackage"></param>
        public SnippetEditor(SnippetDesignerPackage package)
        {
            snippetDesignerPackage = package;
            vsFileChangeCookie = VSConstants.VSCOOKIE_NIL; //initialize the file change cookie to null

            changesToIgnore = 0; //start with no changes to ignore

            InitializePropertiesWindow(); //set up the properties window

            InitializeComponent(); //initialize gui components
            snippetCodeWindow.CodeWindowHost = this; //tell the code window this is its parent codeWindowHost

            logger = package.Logger;
        }
Exemplo n.º 2
0
 public EditorFactory(SnippetDesignerPackage package)
 {
     Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering {0} constructor", ToString()));
     editorPackage = package;
 }
Exemplo n.º 3
0
 public EditorFactory(SnippetDesignerPackage package)
 {
     Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering {0} constructor", ToString()));
     editorPackage = package;
 }
 /// <summary>
 /// Default constructor of the package.
 /// Inside this method you can place any initialization code that does not require
 /// any Visual Studio service because at this point the package object is created but
 /// not sited yet inside Visual Studio environment. The place to do all the other
 /// initialization is the Initialize method.
 /// </summary>
 public SnippetDesignerPackage()
 {
     Instance = this;
     Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering constructor for: {0}", ToString()));
 }
 /// <summary>
 /// Default constructor of the package.
 /// Inside this method you can place any initialization code that does not require 
 /// any Visual Studio service because at this point the package object is created but 
 /// not sited yet inside Visual Studio environment. The place to do all the other 
 /// initialization is the Initialize method.
 /// </summary>
 public SnippetDesignerPackage()
 {
     Instance = this;
     Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering constructor for: {0}", ToString()));
 }