示例#1
0
        /// <summary>
        /// Initialization routine for the Editor. Loads the list of properties for the odml document 
        /// which will show up in the properties window 
        /// </summary>
        /// <param name="package"></param>
        private void PrivateInit(VSPackagePackage package)
        {
            _package = package;
            _trackSel = null;
            var sp = package as System.IServiceProvider;
            _dte = sp.GetService(typeof(DTE)) as DTE;

            Control.CheckForIllegalCrossThreadCalls = false;

            // Create and initialize the editor
            _editorControl = new ModelingEditor(this);
            _editorControl.Changed += (o, e) => _isDirty = true;
            this.Content = this._editorControl;

            var resources = new ComponentResourceManager(typeof(EditorPane));
            resources.ApplyResources(this._editorControl, "editorControl", CultureInfo.CurrentUICulture);

            this.InitSelection();
        }
示例#2
0
        public EditorFactory(VSPackagePackage package)
        {
            Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering {0} constructor", this.ToString()));

            this.editorPackage = package;
        }
示例#3
0
 /// <summary>
 /// Constructor that calls the Microsoft.VisualStudio.Shell.WindowPane constructor then
 /// our initialization functions.
 /// </summary>
 /// <param name="package">Our Package instance.</param>
 public EditorPane(VSPackagePackage package)
     : base(null)
 {
     PrivateInit(package);
 }
示例#4
0
        public EditorFactory(VSPackagePackage package)
        {
            Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering {0} constructor", this.ToString()));

            this.editorPackage = package;
        }