public void run() { internalRefresh(getRoot()); refreshOccurred = true; } });
@Override public void refresh() { refresh(getRoot()); }
@Override public void refresh() { refresh(getRoot()); }
public void refresh() { refresh(getRoot()); }
/** * Refreshes this viewer with information freshly obtained from this * viewer's model. If <code>updateLabels</code> is <code>true</code> * then labels for otherwise unaffected elements are updated as well. * Otherwise, it assumes labels for existing elements are unchanged, and * labels are only obtained as needed (for example, for new elements). * <p> * Calling <code>refresh(true)</code> has the same effect as * <code>refresh()</code>. * <p> * Note that the implementation may still obtain labels for existing * elements even if <code>updateLabels</code> is false. The intent is * simply to allow optimization where possible. * * @param updateLabels * <code>true</code> to update labels for existing elements, * <code>false</code> to only update labels as needed, assuming * that labels for existing elements are unchanged. * * @since 1.0 */ public void refresh(boolean updateLabels) { refresh(getRoot(), updateLabels); }
/** * Refreshes this viewer with information freshly obtained from this * viewer's model. If <code>updateLabels</code> is <code>true</code> * then labels for otherwise unaffected elements are updated as well. * Otherwise, it assumes labels for existing elements are unchanged, and * labels are only obtained as needed (for example, for new elements). * <p> * Calling <code>refresh(true)</code> has the same effect as * <code>refresh()</code>. * <p> * Note that the implementation may still obtain labels for existing * elements even if <code>updateLabels</code> is false. The intent is * simply to allow optimization where possible. * * @param updateLabels * <code>true</code> to update labels for existing elements, * <code>false</code> to only update labels as needed, assuming * that labels for existing elements are unchanged. * * @since 2.0 */ public void refresh(boolean updateLabels) { refresh(getRoot(), updateLabels); }
/** * Refreshes this viewer with information freshly obtained from this * viewer's model. If <code>updateLabels</code> is <code>true</code> * then labels for otherwise unaffected elements are updated as well. * Otherwise, it assumes labels for existing elements are unchanged, and * labels are only obtained as needed (for example, for new elements). * <p> * Calling <code>refresh(true)</code> has the same effect as * <code>refresh()</code>. * <p> * Note that the implementation may still obtain labels for existing * elements even if <code>updateLabels</code> is false. The intent is * simply to allow optimization where possible. * * @param updateLabels * <code>true</code> to update labels for existing elements, * <code>false</code> to only update labels as needed, assuming * that labels for existing elements are unchanged. * * @since 2.0 */ public void refresh(boolean updateLabels) { refresh(getRoot(), updateLabels); }
/** * Returns the result of running the given elements through the filters. * * @param elements * the elements to filter * @return only the elements which all filters accept */ protected Object[] filter(Object[] elements) { if (filters != null) { ArrayList filtered = new ArrayList(elements.length); Object root = getRoot(); for (int i = 0; i < elements.length; i++) { boolean add = true; for (int j = 0; j < filters.size(); j++) { add = ((ViewerFilter) filters.get(j)).select(this, root, elements[i]); if (!add) { break; } } if (add) { filtered.add(elements[i]); } else { if (associateListener != null) associateListener.filteredOut(elements[i]); } } return filtered.toArray(); } return elements; }
/** * Returns the result of running the given elements through the filters. * * @param elements * the elements to filter * @return only the elements which all filters accept */ protected Object[] filter(Object[] elements) { if (filters != null) { ArrayList filtered = new ArrayList(elements.length); Object root = getRoot(); for (int i = 0; i < elements.length; i++) { boolean add = true; for (int j = 0; j < filters.size(); j++) { add = ((ViewerFilter) filters.get(j)).select(this, root, elements[i]); if (!add) { break; } } if (add) { filtered.add(elements[i]); } else { if (associateListener != null) associateListener.filteredOut(elements[i]); } } return filtered.toArray(); } return elements; }
/** * Returns the result of running the given elements through the filters. * * @param elements * the elements to filter * @return only the elements which all filters accept */ protected Object[] filter(Object[] elements) { if (filters != null) { ArrayList filtered = new ArrayList(elements.length); Object root = getRoot(); for (Object element : elements) { boolean add = true; for (int j = 0; j < filters.size(); j++) { add = filters.get(j).select(this, root, element); if (!add) { break; } } if (add) { filtered.add(element); } else { if (associateListener != null) associateListener.filteredOut(element); } } return filtered.toArray(); } return elements; }
internalRefresh(getRoot()); refreshOccurred = true; });
internalRefresh(getRoot()); refreshOccurred = true; });