protected override Action <ITextControl> ExecutePsiTransaction(ISolution solution, IProgressIndicator progress) { if (SelectedXmlTag != null) { IPsiSourceFile sourceFile = SelectedXmlTag.GetSourceFile(); TreeTextRange valueRange = SelectedXmlTag.GetValueRange(); TextRange textRange = new TextRange(valueRange.StartOffset.Offset, valueRange.EndOffset.Offset); if (sourceFile != null) { try { sourceFile.Document.DeleteText(textRange); sourceFile.Document.InsertText(textRange.StartOffset, SelectedXmlTagMinifiedInnerText); } catch { // nomnom... } } } return(null); }