/// <summary>
		/// This method is called before an extension is removed from its DesignItem because it should not be applied anymore.
		/// Is called by the ExtensionManager.
		/// </summary>
		public abstract void RemoveExtension(Extension extension);
		public override void RemoveExtension(Extension extension)
		{
			throw new NotImplementedException();
		}
Beispiel #3
0
        /// <summary>
        /// If interface implementing class sets this to false defaultkeyaction will be 
        /// </summary>
        /// <param name="e"></param>
        /// <returns></returns>
        bool InvokeDefaultKeyDownAction(Extension e)
        {
            var keyDown = e as IKeyDown;
            if (keyDown != null) {
                return keyDown.InvokeDefaultAction;
            }

            return true;
        }
		/// <summary>
		/// Calls OnRemove() on the DefaultExtension.
		/// </summary>
		public override void RemoveExtension(Extension extension)
		{
			DefaultExtension defaultExtension = extension as DefaultExtension;
			Debug.Assert(defaultExtension != null);
			defaultExtension.CallOnRemove();
		}
Beispiel #5
0
 /// <summary>
 /// This method is called before an extension is removed from its DesignItem because it should not be applied anymore.
 /// Is called by the ExtensionManager.
 /// </summary>
 public abstract void RemoveExtension(Extension extension);
 public override void RemoveExtension(Extension extension)
 {
     throw new NotImplementedException();
 }