Related TISTUD-3450: adapted from Eclipse' existing helper method to disable controls.