private void enableDynamicControl(boolean enable) {
dynamicControl.setVisible(enable);
((GridData) dynamicControl.getLayoutData()).exclude = !enable;
// if parentControl is ScrolledForm then call
parentControl.reflow(true);
// otherwise call parentControl.layout(true);
}

Advertisements