Author: dazarov
Date: 2008-01-30 07:36:36 -0500 (Wed, 30 Jan 2008)
New Revision: 6027
Modified:
trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/preferences/RulesConfigurationPage.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1702
Modified:
trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/preferences/RulesConfigurationPage.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/preferences/RulesConfigurationPage.java 2008-01-30
09:17:32 UTC (rev 6026)
+++
trunk/common/plugins/org.jboss.tools.common.verification.ui/src/org/jboss/tools/common/verification/ui/vrules/preferences/RulesConfigurationPage.java 2008-01-30
12:36:36 UTC (rev 6027)
@@ -119,18 +119,27 @@
}
}
-
+ private void setChecked(TreeItem item){
+ item.setChecked(true);
+ for(int i=0;i<item.getItemCount();i++){
+ TreeItem child = item.getItem(i);
+ setChecked(child);
+ }
+ }
public void performDefaults() {
RuleSetWrapper[] ruleSets = provider.getRuleSets();
for (int i = 0; i < ruleSets.length; i++) {
ruleSets[i].setDefaults();
}
-
+
if (treeViewer != null) {
-// treeViewer.refresh(ruleSets[i], true);
- treeViewer.refresh();
-// ruleSets[i].getParent();
+ Tree tree = treeViewer.getTree();
+
+ for(int i=0;i<tree.getItemCount();i++){
+ setChecked(tree.getItem(i));
+ }
+ treeViewer.refresh();
}
significance.loadDefaults();