/** * Implements ILayoutExtension. Should not be called directly. * * @see ILayoutExtension */ @Override public int computeMinimumWidth(Composite parent, boolean changed) { Control[] children = parent.getChildren(); if (changed) { cache.flush(); } cache.setControls(children); changed = true; initializeIfNeeded(parent, changed); if (initialLayout) { changed = true; initialLayout = false; } if (grid == null || changed) { changed = true; grid = new Vector<>(); createGrid(parent); } if (minColumnWidths == null) minColumnWidths = new int[numColumns]; for (int i = 0; i < numColumns; i++) { minColumnWidths[i] = 0; } return internalGetMinimumWidth(parent, changed); }
/** * Implements ILayoutExtension. Should not be called directly. * * @see ILayoutExtension */ @Override public int computeMaximumWidth(Composite parent, boolean changed) { Control[] children = parent.getChildren(); if (changed) { cache.flush(); } cache.setControls(children); changed = true; initializeIfNeeded(parent, changed); if (initialLayout) { changed = true; initialLayout = false; } if (grid == null || changed) { changed = true; grid = new Vector<>(); createGrid(parent); } if (maxColumnWidths == null) maxColumnWidths = new int[numColumns]; for (int i = 0; i < numColumns; i++) { maxColumnWidths[i] = 0; } return internalGetMaximumWidth(parent, changed); }
/** * Implements ILayoutExtension. Should not be called directly. * * @see ILayoutExtension */ @Override public int computeMinimumWidth(Composite parent, boolean changed) { Control[] children = parent.getChildren(); if (changed) { cache.flush(); } cache.setControls(children); changed = true; initializeIfNeeded(parent, changed); if (initialLayout) { changed = true; initialLayout = false; } if (grid == null || changed) { changed = true; grid = new Vector<>(); createGrid(parent); } if (minColumnWidths == null) minColumnWidths = new int[numColumns]; for (int i = 0; i < numColumns; i++) { minColumnWidths[i] = 0; } return internalGetMinimumWidth(parent, changed); }
/** * Implements ILayoutExtension. Should not be called directly. * * @see ILayoutExtension */ @Override public int computeMaximumWidth(Composite parent, boolean changed) { Control[] children = parent.getChildren(); if (changed) { cache.flush(); } cache.setControls(children); changed = true; initializeIfNeeded(parent, changed); if (initialLayout) { changed = true; initialLayout = false; } if (grid == null || changed) { changed = true; grid = new Vector<>(); createGrid(parent); } if (maxColumnWidths == null) maxColumnWidths = new int[numColumns]; for (int i = 0; i < numColumns; i++) { maxColumnWidths[i] = 0; } return internalGetMaximumWidth(parent, changed); }
initializeIfNeeded(parent, changed); if (initialLayout) { changed = true;
initializeIfNeeded(parent, changed); if (initialLayout) { changed = true;
initializeIfNeeded(parent, changed); if (initialLayout) { changed = true;
initializeIfNeeded(parent, changed); if (initialLayout) { changed = true;