Fix to handle old settings properly
authorJan Vrany <jan.vrany@fit.cvut.cz>
Mon, 24 Nov 2014 12:29:51 +0100
changeset 14899 8a2d8908b414
parent 14898 c786afd145ce
child 14900 dede7d16f0b6
Fix to handle old settings properly In the past, rule sets were saved as RBCompositeRule instances
Tools__LintRuleSettingsApplication.st
--- a/Tools__LintRuleSettingsApplication.st	Sun Nov 23 18:21:24 2014 +0100
+++ b/Tools__LintRuleSettingsApplication.st	Mon Nov 24 12:29:51 2014 +0100
@@ -498,7 +498,7 @@
     | oldRulesets newRulesets toRemove toAdd |
 
     oldRulesets := RBCompositeLintRule rulesetsUserDefined.
-    newRulesets := self rulesetList select:[:e|e isUserDefined].
+    newRulesets := self rulesetList reject:[:e|e isBuiltin].
 
     toAdd := OrderedCollection withAll: newRulesets.
     toRemove := Set new.
@@ -517,7 +517,7 @@
     oldRulesets addAll:toAdd.
     RBCompositeLintRule rulesetsUserDefined: oldRulesets.
 
-    "Modified: / 11-11-2014 / 15:07:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 24-11-2014 / 11:21:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 helpFilename
@@ -560,11 +560,11 @@
 !LintRuleSettingsApplication class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/Tools__LintRuleSettingsApplication.st,v 1.14 2014-11-21 14:01:19 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/Tools__LintRuleSettingsApplication.st,v 1.15 2014-11-24 11:29:51 vrany Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libtool/Tools__LintRuleSettingsApplication.st,v 1.14 2014-11-21 14:01:19 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/Tools__LintRuleSettingsApplication.st,v 1.15 2014-11-24 11:29:51 vrany Exp $'
 ! !