Example #1
0
 private void menuCut_Click(object sender, EventArgs e)
 {
     if (hClip != null && hClip.CanCut)
     {
         hClip.Cut();
     }
 }
Example #2
0
        protected void OnCut()
        {
            IClipboardHandler handler = GetContent <IClipboardHandler> ();

            if (handler != null)
            {
                handler.Cut();
            }
        }
Example #3
0
        private void cutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            IClipboardHandler clipboardHandler = GetHandler <IClipboardHandler>();

            if (clipboardHandler != null)
            {
                clipboardHandler.Cut();
            }
        }
Example #4
0
        private void menuEditCut_Click(object sender, EventArgs e)
        {
            IClipboardHandler h = this.DockPanel.ActiveContent as IClipboardHandler;

            if (h != null && h.CanCut)
            {
                h.Cut();
            }
        }
Example #5
0
        public override void Run()
        {
            if (IsEnabled)
            {
                if (Owner is ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.SharpDevelopTextAreaControl)
                {
                    ((ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.SharpDevelopTextAreaControl)Owner).ActiveTextAreaControl.TextArea.ClipboardHandler.Cut(null, null);
                    return;
                }

                IWorkbenchWindow  window   = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;
                IClipboardHandler editable = window != null ? window.ActiveViewContent as IClipboardHandler : null;
                if (editable != null)
                {
                    editable.Cut();
                }
            }
        }
Example #6
0
		protected override void Run(IClipboardHandler editable)
		{
			editable.Cut();
		}
 protected override void Run(IClipboardHandler editable)
 {
     editable.Cut();
 }