pmd-eclipse: fix #1070 Properties page: "Rule-Selection" should be disabled if project-local config is selected

This commit is contained in:
Andreas Dangel committed 2013-08-10 22:59:50 +02:00
1 parent 99a0c59b98
commit 90590dce93
2 files changed
+7 -6

No files matched your search

+2
View File
@@ -8,6 +8,7 @@ Eclipse Update Site: http://sourceforge.net/projects/pmd/files/pmd-eclipse/updat
* The official update site is now: http://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/
* Fixed right click to add reviewed comment missing ([bug #1052])
* Fixed PMD Eclipse: How to ... documentation missing ([bug #1061])
* Fixed Properties page: "Rule-Selection" should be disabled if project-local config is selected ([bug #1070])
* Fixed Violations are reported multiple times ([bug #1071])
* Fixed Exclude pattern does not work ([bug #1079])
* Fixed SWTError: No more handles on Violation Outline View ([bug #1096])
@@ -18,6 +19,7 @@ Eclipse Update Site: http://sourceforge.net/projects/pmd/files/pmd-eclipse/updat
[bug #1052]: https://sourceforge.net/p/pmd/bugs/1052/
[bug #1061]: https://sourceforge.net/p/pmd/bugs/1061/
[bug #1070]: https://sourceforge.net/p/pmd/bugs/1070/
[bug #1071]: https://sourceforge.net/p/pmd/bugs/1071/
[bug #1079]: https://sourceforge.net/p/pmd/bugs/1079/
[bug #1096]: https://sourceforge.net/p/pmd/bugs/1096/
@@ -231,7 +231,6 @@ public class PMDProjectPropertyPage extends PropertyPage {
data.verticalAlignment = GridData.FILL;
ruleDescriptionPanel.setLayoutData(data);
refreshRuleSetInProject();
adjustControls();
} else {
setValid(false);
@@ -254,11 +253,9 @@ public class PMDProjectPropertyPage extends PropertyPage {
boolean isEnabled = enablePMDButton.getSelection();
SWTUtil.setEnabled(activeControls, isEnabled);
showDescriptionField(isEnabled && !ruleSetStoredInProjectButton.getSelection());
if (isEnabled) {
deselectWorkingSetButton.setEnabled(selectedWorkingSet != null);
enableExternalRulesetControls(ruleSetStoredInProjectButton.getSelection());
refreshRuleSetInProject();
}
}
@@ -335,7 +332,7 @@ public class PMDProjectPropertyPage extends PropertyPage {
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
refreshRuleSetInProject();
adjustControls();
}
});
@@ -353,7 +350,7 @@ public class PMDProjectPropertyPage extends PropertyPage {
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
refreshRuleSetInProject();
adjustControls();
}
});
@@ -660,9 +657,11 @@ public class PMDProjectPropertyPage extends PropertyPage {
Table ruleTable = availableRulesTableViewer.getTable();
if (ruleSetStoredInProjectButton.getSelection()) {
ruleTable.setEnabled(false);
showDescriptionField(false);
enableExternalRulesetControls(true);
} else {
ruleTable.setEnabled(true);
showDescriptionField(true);
enableExternalRulesetControls(false);
}
}