Bug 127861 [DataBinding] Mark API provisional
examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/contentprovider/test/AsynchronousTestSet.java
if (removeCount > 0) {
								Iterator oldElements = elements.iterator();
								for (int i = 0; i < removeCount && oldElements.hasNext(); i++) {
									toRemove.add(oldElements.next());
								}
							}
							
							setStale(false);
							
							toAdd.removeAll(elements);
							elements.addAll(toAdd);
							fireAdded(toAdd);
							elements.removeAll(toRemove);
							fireRemoved(toRemove);
						}
					});
				}
			});
			
			newThread.start();
		}
	}
	private void setStale(boolean b) {
		if (!stale == b) {
			stale = b;
			fireStale(b);
		}
	}
}