Exemplo n.º 1
0
 void RemoveWidget()
 {
     /*
      * if (widget == null)
      *      return;
      * widget.Hide ();*/
     if (widget != null)
     {
         widget.Destroy();
         widget = null;
     }
 }
 public override void Dispose()
 {
     CancelQuickFixTimer();
     document.Editor.SelectionChanged -= HandleSelectionChanged;
     document.DocumentParsed          -= HandleDocumentDocumentParsed;
     if (widget != null)
     {
         widget.Destroy();
         widget = null;
     }
     base.Dispose();
 }
 void RemoveWidget()
 {
     if (widget != null)
     {
         widget.Destroy();
         widget = null;
     }
     if (currentSmartTag != null)
     {
         document.Editor.Document.RemoveMarker(currentSmartTag);
         currentSmartTag      = null;
         currentSmartTagBegin = DocumentLocation.Empty;
     }
     CancelSmartTagPopupTimeout();
 }
Exemplo n.º 4
0
 void OnQuickFixCommand()
 {
     if (!QuickTaskStrip.EnableFancyFeatures)
     {
         var w = new CodeActionWidget(this, Document);
         w.SetFixes(RefactoringService.GetValidActions(Document, Document.Editor.Caret.Location).Result, Document.Editor.Caret.Location);
         w.PopupQuickFixMenu();
         w.Destroy();
         return;
     }
     if (currentSmartTag == null)
     {
         return;
     }
     currentSmartTag.Popup();
 }
		void OnQuickFixCommand ()
		{

			if (!QuickTaskStrip.EnableFancyFeatures) {
				var w = new CodeActionWidget (this, Document);
				w.SetFixes (RefactoringService.GetValidActions (Document, Document.Editor.Caret.Location).Result, Document.Editor.Caret.Location);
				w.PopupQuickFixMenu ();
				w.Destroy ();
				return;
			}
			if (widget == null || !widget.Visible)
				return;
			widget.PopupQuickFixMenu ();
		}