void () { final boolean regex = myConstraint.isRegexExprType(); myTextField.setFileType(myShowRegex && regex ? RegExpFileType.INSTANCE : PlainTextFileType.INSTANCE); myTextField.setText((myConstraint.isInvertExprType() ? "!" : "") + (regex ? myConstraint.getNameOfExprType() : myConstraint.getExpressionTypes())); myHierarchyCheckBox.setSelected(myConstraint.isExprTypeWithinHierarchy()); myRegexCheckBox.setSelected(myShowRegex && regex); myRegexCheckBox.setVisible(myShowRegex); }