From bb63454a892f7d11a8c17d90d82012b2f293fc7e Mon Sep 17 00:00:00 2001 From: Philippe Herlin Date: Tue, 25 Oct 2005 00:02:44 +0000 Subject: [PATCH] Fix the update of the project rule set file. git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@3939 51baf565-9d33-0410-a72c-fc3788e3496d --- .../pmd/eclipse/model/ProjectPropertiesModelImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pmd-eclipse/src/net/sourceforge/pmd/eclipse/model/ProjectPropertiesModelImpl.java b/pmd-eclipse/src/net/sourceforge/pmd/eclipse/model/ProjectPropertiesModelImpl.java index 7f4ea8d880..46dc6e18db 100644 --- a/pmd-eclipse/src/net/sourceforge/pmd/eclipse/model/ProjectPropertiesModelImpl.java +++ b/pmd-eclipse/src/net/sourceforge/pmd/eclipse/model/ProjectPropertiesModelImpl.java @@ -74,6 +74,9 @@ import org.eclipse.ui.PlatformUI; * @version $Revision$ * * $Log$ + * Revision 1.12 2005/10/25 00:02:44 phherlin + * Fix the update of the project rule set file. + * * Revision 1.11 2005/10/24 23:53:51 phherlin * Fix "when enabling PMD, does not ask to rebuild or not the project". * @@ -177,6 +180,8 @@ public class ProjectPropertiesModelImpl extends AbstractModel implements Project log.info("Query the rule set for project " + this.project.getName()); if (!isRuleSetStoredInProject()) { this.needRebuild |= synchronizeRuleSet(); + } else { + loadRuleSetFromProject(); } return this.projectRuleSet; @@ -427,7 +432,7 @@ public class ProjectPropertiesModelImpl extends AbstractModel implements Project * */ private void loadRuleSetFromProject() { - if (!isRuleSetFileExist()) { + if (isRuleSetFileExist()) { try { final RuleSetFactory factory = new RuleSetFactory(); final IFile ruleSetFile = this.project.getFile(PMDPluginConstants.PROJECT_RULESET_FILE);