}
return new LexerEditorHighlighter(PlainTextSyntaxHighlighterFactory.getSyntaxHighlighter(language, null, null), settings);
}
public MongoQueryOptions getQueryOptions() {
MongoQueryOptions mongoQueryOptions = new MongoQueryOptions();
if (isAgregationEnabled()) {
try {
mongoQueryOptions.setQueries(getQueries());
} catch (JSONParseException ex) {
notifyOnErrorForOperator(ex);
throw ex;
} catch (NumberFormatException ex) {
notifyOnErrorForOperator(ex);
throw ex;
}
} else {
try {
mongoQueryOptions.setFilter(getQuery());
} catch (JSONParseException ex) {
notifyOnErrorForOperator(ex);
}
}
if (StringUtils.isNotBlank(rowLimitField.getText())) {
mongoQueryOptions.setResultLimit(Integer.parseInt(rowLimitField.getText()));
}
return mongoQueryOptions;
}