FindModel (String stringToFind) { FindModel findModel = new FindModel(); findModel.setStringToFind(stringToFind); findModel.setWholeWordsOnly(false); findModel.setFromCursor(false); findModel.setGlobal(true); findModel.setMultipleFiles(false); findModel.setProjectScope(true); return findModel; }