public QuickFixMenuItem(string text, QuickFix qf)
     : base(text)
 {
     quickFix=qf;
 }
        internal void PerformQuickFix(QuickFix qf)
        {
            // set the selection just before change so that undo puts us
            // somewhere sensible
            SetSelection(qf.PreSelection(selectionManager, currentSelection));

            Selection sel=qf.Perform(this.selectionManager);

            SetSelection(sel);
            UpdateCaretPosition(true);
            EnsureCaretVisible();
        }