<No Comment Entered>
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@358 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Binary file not shown.
@ -39,7 +39,6 @@ public class PMDOpenTool {
|
||||
* Default constructor
|
||||
*/
|
||||
public PMDOpenTool () {
|
||||
int i;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -108,7 +107,7 @@ public class PMDOpenTool {
|
||||
RuleSetFactory ruleSetFactory = new RuleSetFactory();
|
||||
RuleSet rules = constructRuleSets(ruleSetFactory, pmd);
|
||||
if (rules == null)
|
||||
return null;
|
||||
return new Report();
|
||||
ctx.setReport(new Report());
|
||||
ctx.setSourceCodeFilename("this");
|
||||
try {
|
||||
@ -235,10 +234,12 @@ class PMDMessage extends Message {
|
||||
browser.setActiveViewer(javaNode, viewer, requestFocus);
|
||||
EditorPane editor = viewer.getEditor();
|
||||
editor.gotoPosition(line, column, false, EditorPane.CENTER_IF_NEAR_EDGE);
|
||||
if (requestFocus)
|
||||
if (requestFocus) {
|
||||
editor.requestFocus();
|
||||
else
|
||||
}
|
||||
else {
|
||||
editor.setTemporaryMark(line, MARK);
|
||||
}
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
|
@ -70,10 +70,12 @@ public class RuleSetPropertyPage extends PropertyPage {
|
||||
//loop through the sets of rules and place them in the appropriate pane based upon their setting
|
||||
for (int i = 0; i < RuleSetPropertyGroup.RULESET_NAMES.length; i++) {
|
||||
ListEntry le = new ListEntry(RuleSetPropertyGroup.RULESET_NAMES[i], RuleSetPropertyGroup.PROPKEYS[i]);
|
||||
if (Boolean.valueOf(RuleSetPropertyGroup.PROPKEYS[i].getValue()).booleanValue())
|
||||
if (Boolean.valueOf(RuleSetPropertyGroup.PROPKEYS[i].getValue()).booleanValue()) {
|
||||
dlmSelectedRuleSets.addElement(le);
|
||||
else
|
||||
}
|
||||
else {
|
||||
dlmAvailableRuleSets.addElement(le);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user