Package com._1c.g5.v8.dt.common.ui
Class EnablementService
java.lang.Object
com._1c.g5.v8.dt.common.ui.EnablementService
Service to disable/enable SWT controls including their children,
enablement state of child controls is preserved.
-
Method Summary
Modifier and TypeMethodDescriptionstatic EnablementService
void
setEnabled
(org.eclipse.swt.widgets.Control control, boolean enabled) Sets the enablement state for a givencontrol
and its children.
-
Method Details
-
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 givencontrol
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.
-