/** * Marks all instances of the specified text in this text area. This * method is typically only called directly in response to search events * of type <code>SearchEvent.Type.MARK_ALL</code>. "Mark all" behavior * is automatically performed when {@link #find(JTextArea, SearchContext)} * or {@link #replace(RTextArea, SearchContext)} is called. * * @param textArea The text area in which to mark occurrences. * @param context The search context specifying the text to search for. * It is assumed that <code>context.getMarkAll()</code> has already * been checked and returns <code>true</code>. * @return The results of the operation. */ public static SearchResult markAll(RTextArea textArea, SearchContext context) { textArea.clearMarkAllHighlights(); // if (context.getMarkAll()) { return markAllImpl(textArea, context); // } // return new SearchResult(); }
((RTextArea)textArea).clearMarkAllHighlights();
/** * Marks all instances of the specified text in this text area. This * method is typically only called directly in response to search events * of type <code>SearchEvent.Type.MARK_ALL</code>. "Mark all" behavior * is automatically performed when {@link #find(JTextArea, SearchContext)} * or {@link #replace(RTextArea, SearchContext)} is called. * * @param textArea The text area in which to mark occurrences. * @param context The search context specifying the text to search for. * It is assumed that <code>context.getMarkAll()</code> has already * been checked and returns <code>true</code>. * @return The results of the operation. */ public static SearchResult markAll(RTextArea textArea, SearchContext context) { textArea.clearMarkAllHighlights(); // if (context.getMarkAll()) { return markAllImpl(textArea, context); // } // return new SearchResult(); }
if (toMark!=null && !toMark.equals(markedWord) && h!=null) { if (markAllHighlights!=null) clearMarkAllHighlights(); else markAllHighlights = new ArrayList(10);
if (toMark!=null && !toMark.equals(markedWord) && h!=null) { if (markAllHighlights!=null) clearMarkAllHighlights(); else markAllHighlights = new ArrayList(10);
((RTextArea)textArea).clearMarkAllHighlights();