Source

Resharper Spell Checker / ReSpeller / Bulbs / EditAddToDictionaryBulb.cs

Full commit
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Daemon;
using JetBrains.ReSharper.Intentions.Extensibility;
using JetBrains.TextControl;
using ReSpeller.Actions;

namespace ReSpeller.Bulbs
{
  class EditAddToDictionaryBulb : IBulbAction
  {
    private readonly string myWord;

    public EditAddToDictionaryBulb(string word)
    {
      myWord = word;
    }

    public void Execute(ISolution solution, ITextControl textControl)
    {
      AddArbitraryWordHelper.ShowWordInput(myWord);
      Daemon.GetInstance(solution).Invalidate();
    }

    public string Text { get { return "Add custom word to user dictionary"; }
    }
  }
}