Class EnablementService

java.lang.Object
com._1c.g5.v8.dt.common.ui.EnablementService

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

    • getInstance

      public static EnablementService getInstance()
      Returns:
      global shared instance of the EnablementService.
    • 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.
      Parameters:
      control - control to set enablement state of.
      enabled - true to enable the control, false to disable the control.