void () { configureFromText(""" one two three four"""); initFind(); myFindModel.setStringToFind("two"); checkResultByText(""" one <selection>two</selection> three four"""); getEditor().getSelectionModel().setSelection(2, 10); myFindModel.setGlobal(false); // search in selection myFindModel.setStringToFind("twox"); checkResultByText(""" on<selection>e two th</selection>ree four"""); }