/** @param added added or removed * @param indices list of integers with indexes that changed */ protected void fireSubNodesChangeIdx(boolean added, int[] idxs, Entry sourceEntry, List<Node> current, List<Node> previous) { if (children.parent != null && children.getEntrySupport() == this) { children.parent.fireSubNodesChangeIdx(added, idxs, sourceEntry, current, previous); } }
LOGGER.finer(" firing node removal: " + snapshot); // NOI18N parent.fireSubNodesChangeIdx(false, idxs, null, Collections.<Node>emptyList(), snapshot);
int[] idxs = Children.getSnapshotIdxs(prevSnapshot); fireSubNodesChangeIdx(false, idxs, null, Collections.<Node>emptyList(), prevSnapshot); if (snapshot.size() > 0) { int[] idxs = Children.getSnapshotIdxs(snapshot); fireSubNodesChangeIdx(true, idxs, null, snapshot, null);
if (snapshot.size() > 0) { int[] idxs = getSnapshotIdxs(snapshot); parent.fireSubNodesChangeIdx(false, idxs, null, Collections.<Node>emptyList(), snapshot);