Class EnablementService

  • public class EnablementService
    extends Object
    Service to disable/enable SWT controls including their children, enablement state of child controls is preserved.
    • Method Detail

      • setEnabled

        public void setEnabled​(org.eclipse.swt.widgets.Control control,
                               boolean enabled)
        Sets the enablement state for a given control and its children. Enablement state is preserved for children if control is being disabled and will be restored if control will enabled later.
        control - control to set enablement state of.
        enabled - true to enable the control, false to disable the control.