|
|
@ -61,8 +61,7 @@ public class TextFieldEditorDefinePane extends FieldEditorDefinePane<TextEditor> |
|
|
|
regPane.getRegComboBox().addActionListener(new ActionListener() { |
|
|
|
regPane.getRegComboBox().addActionListener(new ActionListener() { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
RegExp regExp = (RegExp) regPane.getRegComboBox().getSelectedItem(); |
|
|
|
RegExp regExp = (RegExp) regPane.getRegComboBox().getSelectedItem(); |
|
|
|
String regText = regExp.toRegText(); |
|
|
|
if (StringUtils.EMPTY.equals(regExp.toRegText())) { |
|
|
|
if (regText != null && !StringUtils.isNotEmpty(regText)) { |
|
|
|
|
|
|
|
getRegErrorMsgTextField().setEnabled(false); |
|
|
|
getRegErrorMsgTextField().setEnabled(false); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
getRegErrorMsgTextField().setEnabled(true); |
|
|
|
getRegErrorMsgTextField().setEnabled(true); |
|
|
|