SIL.FieldWorks.IText.FocusBoxController.OnBreakPhrase C# (CSharp) Method

OnBreakPhrase() public method

split the current occurrence into occurrences for each word in the phrase-wordform. (if it IsPhrase)
public OnBreakPhrase ( object arg ) : void
arg object
return void
		public void OnBreakPhrase(object arg)
		{
			// (LT-8069) in some odd circumstances, the break phrase icon lingers on the tool bar menu when it should
			// have disappeared. If we're in that state, just return.
			if (!ShowBreakPhraseIcon)
				return;
			var cmd = (ICommandUndoRedoText)arg;
			UndoableUnitOfWorkHelper.Do(cmd.UndoText, cmd.RedoText, Cache.ActionHandlerAccessor,
				() => SelectedOccurrence.BreakPhrase());
			InterlinWordControl.SwitchWord(SelectedOccurrence);
			UpdateButtonState();
		}