@Override public String toString() { return "[SearchContext: " + "searchFor=" + getSearchFor() + ", replaceWith=" + getReplaceWith() + ", matchCase=" + getMatchCase() + ", wholeWord=" + getWholeWord() + ", regex=" + isRegularExpression() + ", markAll=" + getMarkAll() + "]"; }
if (context.getMarkAll() && toMark!=null && toMark.length()>0
if (textArea instanceof RTextArea || context.getMarkAll()) { ((RTextArea)textArea).clearMarkAllHighlights(); boolean doMarkAll = textArea instanceof RTextArea && context.getMarkAll();
if (context.getMarkAll()) { textArea.clearMarkAllHighlights(); if (context.getMarkAll()) { context = context.clone(); context.setMarkAll(false);
if (context.getMarkAll()) { textArea.clearMarkAllHighlights();
if (context.getMarkAll()) { markAllCount = markAllImpl(textArea, context).getMarkedCount();
@Test public void testClone() { String searchFor = "foo"; boolean matchCase = true; boolean markAll = false; boolean regex = true; String replaceWith = "bar"; boolean forward = false; boolean selectionOnly = false;//true; // "true" not yet supported boolean wholeWord = true; SearchContext sc = new SearchContext(searchFor, matchCase); sc.setMarkAll(markAll); sc.setRegularExpression(regex); sc.setReplaceWith(replaceWith); sc.setSearchForward(forward); sc.setSearchSelectionOnly(selectionOnly); sc.setWholeWord(wholeWord); SearchContext sc2 = sc.clone(); Assert.assertEquals(sc2.getSearchFor(), sc.getSearchFor()); Assert.assertEquals(sc2.getMatchCase(), sc.getMatchCase()); Assert.assertEquals(sc2.getMarkAll(), sc.getMarkAll()); Assert.assertEquals(sc2.isRegularExpression(), sc.isRegularExpression()); Assert.assertEquals(sc2.getReplaceWith(), sc.getReplaceWith()); Assert.assertEquals(sc2.getSearchForward(), sc.getSearchForward()); Assert.assertEquals(sc2.getSearchSelectionOnly(), sc.getSearchSelectionOnly()); Assert.assertEquals(sc2.getWholeWord(), sc.getWholeWord()); }
@Override public String toString() { return "[SearchContext: " + "searchFor=" + getSearchFor() + ", replaceWith=" + getReplaceWith() + ", matchCase=" + getMatchCase() + ", wholeWord=" + getWholeWord() + ", regex=" + isRegularExpression() + ", markAll=" + getMarkAll() + "]"; }
if (context.getMarkAll() && toMark!=null && toMark.length()>0
if (textArea instanceof RTextArea || context.getMarkAll()) { ((RTextArea)textArea).clearMarkAllHighlights(); boolean doMarkAll = textArea instanceof RTextArea && context.getMarkAll();
if (context.getMarkAll()) { textArea.clearMarkAllHighlights(); if (context.getMarkAll()) { context = context.clone(); context.setMarkAll(false);
if (context.getMarkAll()) { textArea.clearMarkAllHighlights();
if (context.getMarkAll()) { markAllCount = markAllImpl(textArea, context).getMarkedCount();