Fix to handle old settings properly
In the past, rule sets were saved as RBCompositeRule instances
--- 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 $'
! !