Double-derived class to allow easier code customization.
Inheritance: OrmLanguageClipboardCommandSetBase
Exemplo n.º 1
0
		/// <summary>
		/// Initialization method called by the package base class when this package is loaded.
		/// </summary>
		protected override void Initialize()
		{
			base.Initialize();

			// Register the editor factory used to create the DSL editor.
			this.RegisterEditorFactory(new OrmLanguageEditorFactory(this));
			
			// Initialize the toolbox helper
			toolboxHelper = new global::Company.OrmLanguage.OrmLanguageToolboxHelper(this);

			// Create the command set that handles menu commands provided by this package.
			OrmLanguageCommandSet commandSet = new OrmLanguageCommandSet(this);
			commandSet.Initialize();
			
			// Create the command set that handles cut/copy/paste commands provided by this package.
			OrmLanguageClipboardCommandSet clipboardCommandSet = new OrmLanguageClipboardCommandSet(this);
			clipboardCommandSet.Initialize();
			
			// Register the model explorer tool window for this DSL.
			this.AddToolWindow(typeof(OrmLanguageExplorerToolWindow));

			// Initialize Extension Registars
			// this is a partial method call
			this.InitializeExtensions();

			// Add dynamic toolbox items
			this.SetupDynamicToolbox();
		}
Exemplo n.º 2
0
        /// <summary>
        /// Initialization method called by the package base class when this package is loaded.
        /// </summary>
        protected override void Initialize()
        {
            base.Initialize();

            // Register the editor factory used to create the DSL editor.
            this.RegisterEditorFactory(new OrmLanguageEditorFactory(this));

            // Initialize the toolbox helper
            toolboxHelper = new global::Company.OrmLanguage.OrmLanguageToolboxHelper(this);

            // Create the command set that handles menu commands provided by this package.
            OrmLanguageCommandSet commandSet = new OrmLanguageCommandSet(this);

            commandSet.Initialize();

            // Create the command set that handles cut/copy/paste commands provided by this package.
            OrmLanguageClipboardCommandSet clipboardCommandSet = new OrmLanguageClipboardCommandSet(this);

            clipboardCommandSet.Initialize();

            // Register the model explorer tool window for this DSL.
            this.AddToolWindow(typeof(OrmLanguageExplorerToolWindow));

            // Initialize Extension Registars
            // this is a partial method call
            this.InitializeExtensions();

            // Add dynamic toolbox items
            this.SetupDynamicToolbox();
        }