void (ActionEvent e) { final ThreeStateCheckBox.State state = myShowContentCheckBox.getState(); if (state == ThreeStateCheckBox.State.SELECTED) { mySubstitutionParameters.setSubstituteAll(); } else if (state == ThreeStateCheckBox.State.NOT_SELECTED) { mySubstitutionParameters.setSubstituteNone(); } myShowContentCheckBox.setThirdStateEnabled(false); myLayoutTreeComponent.rebuildTree(); onShowContentSettingsChanged(); }