/** Check if something has changed and if so recreate it to the cached objects. * @param parent The parent that is the target for this layout manager. */ private void checkCache(Composite parent) { if (parent == null) return; checkConstrMap(parent); ContainerWrapper par = checkParent(parent); // Check if the grid is valid int mc = PlatformDefaults.getModCount(); if (lastModCount != mc) { grid = null; lastModCount = mc; } int hash = parent.getSize().hashCode(); for (ComponentWrapper cw : ccMap.keySet()) { hash ^= cw.getLayoutHashCode(); hash += 285134905; } if (hash != lastHash) { grid = null; lastHash = hash; } setDebug(par, getDebugMillis() > 0); if (grid == null) grid = new Grid(par, lc, rowSpecs, colSpecs, ccMap, callbackList); }
resetLastInvalidOnParent = true; hash ^= wrapper.getLayoutHashCode(); hash += 285134905;