Integrated with PMD-0.5

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@387 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
David Craine
2002-07-16 20:47:53 +00:00
parent fcf746467b
commit f3c220365a

View File

@ -24,11 +24,15 @@ import java.awt.event.*;
import com.borland.primetime.ide.Browser;
import com.borland.primetime.ide.MessageCategory;
import java.util.Enumeration;
import net.sourceforge.pmd.RuleSetFactory;
import java.util.Iterator;
import net.sourceforge.pmd.RuleSet;
import com.borland.primetime.properties.GlobalProperty;
public class RuleSetPropertyPage extends PropertyPage {
//static MessageCategory cat = new MessageCategory("test");
static MessageCategory msgCat = new MessageCategory("test");
private BorderLayout borderLayout1 = new BorderLayout();
private JSplitPane jSplitPane1 = new JSplitPane();
private Border border1;
@ -77,6 +81,30 @@ public class RuleSetPropertyPage extends PropertyPage {
dlmAvailableRuleSets.addElement(le);
}
}
/*try {
RuleSetFactory rsf = new RuleSetFactory();
Browser.getActiveBrowser().getMessageView().addMessage(msgCat, "rsf: " + rsf.toString());
Iterator iter = rsf.getRegisteredRuleSets();
Browser.getActiveBrowser().getMessageView().addMessage(msgCat, "Iter: " + iter.toString());
while (iter.hasNext()) {
RuleSet rs = (RuleSet)iter.next();
Browser.getActiveBrowser().getMessageView().addMessage(msgCat, rs.getName());
GlobalProperty gp = new GlobalProperty("RuleSets", rs.getName(), "true");
ListEntry le = new ListEntry(rs.getName(), gp);
if (Boolean.valueOf(gp.getValue()).booleanValue()) {
dlmSelectedRuleSets.addElement(le);
}
else {
dlmAvailableRuleSets.addElement(le);
}
}
}
catch (Exception e){
Browser.getActiveBrowser().getMessageView().addMessage(msgCat, e.toString());
}*/
}
/**