return createStringPattern(patternStr, searchFor, limitTo, matchRule);
}
@SuppressWarnings("restriction")
protected SearchPattern createStringPattern(String patternStr, int searchFor, int limitTo, int matchRule) {
IDLTKLanguageToolkit toolkit = DeeLanguageToolkit.getDefault();
SearchPattern pattern = SearchPattern.createPattern(patternStr, searchFor, limitTo, matchRule, toolkit);
if(pattern instanceof FieldPattern) {
FieldPattern fieldPattern = (FieldPattern) pattern;
// we may have to work arround a DLTK bug here
// -- we are still going to test this codepath, even though it's not accessible because of DLTK bug