From e233feacf11e355e66137032bf9490cb0999e85a Mon Sep 17 00:00:00 2001 From: Artem Khvastunov Date: Tue, 10 Jan 2017 16:19:52 +0100 Subject: [PATCH] WI-34643 feature: support regex in "Allow replacing copyright if old copyright contains" field (wording) --- .../maddyhome/idea/copyright/ui/CopyrightConfigurable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/copyright/src/com/maddyhome/idea/copyright/ui/CopyrightConfigurable.java b/plugins/copyright/src/com/maddyhome/idea/copyright/ui/CopyrightConfigurable.java index 387c3abdf6ae..32421825ac3e 100644 --- a/plugins/copyright/src/com/maddyhome/idea/copyright/ui/CopyrightConfigurable.java +++ b/plugins/copyright/src/com/maddyhome/idea/copyright/ui/CopyrightConfigurable.java @@ -122,8 +122,8 @@ public class CopyrightConfigurable extends NamedConfigurable { public void apply() throws ConfigurationException { myCopyrightProfile.setNotice(EntityUtil.encode(myEditor.getDocument().getText())); - myCopyrightProfile.setKeyword(validateRegexpAndGet(myKeywordTf.getText().trim(), "Detect keyword pattern syntax is incorrect: ")); - myCopyrightProfile.setAllowReplaceRegexp(validateRegexpAndGet(myAllowReplaceTextField.getText().trim(), "Replace keyword pattern syntax is incorrect: ")); + myCopyrightProfile.setKeyword(validateRegexpAndGet(myKeywordTf.getText().trim(), "Detect copyright regexp is incorrect: ")); + myCopyrightProfile.setAllowReplaceRegexp(validateRegexpAndGet(myAllowReplaceTextField.getText().trim(), "Replace copyright regexp is incorrect: ")); CopyrightManager.getInstance(myProject).replaceCopyright(myDisplayName, myCopyrightProfile); myDisplayName = myCopyrightProfile.getName(); myModified = false;