/** * Convenience method that allows the trim layout manager to * inform widgets if they have changed locations. If the IWidget * implementation does not support the method then we default * to using the simpler <code>fill(final Composite parent)</code>. * * @param parent The composite to create the controls in * @param oldSide The side the trim was previously displayed on * @param newSide The new side that the trim will be displayed on */ public void fill(Composite parent, int oldSide, int newSide) { if (loadWidget()) { if (isMoveableTrimWidget()) { ((AbstractWorkbenchTrimWidget) widget).fill(parent, oldSide, newSide); } else { widget.fill(parent); } } }