forked from phoedos/pmd
Minor cleanups
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4289 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
<property name="etc" value="etc/"/>
|
||||
<property name="pmdjar" value="pmd-3.5.jar"/>
|
||||
<property name="pluginversion" value="1.8"/>
|
||||
<property name="jdeveloper9052.install.dir" value="/home/tom/jdev9052/jdev/lib/ext/${ant.project.name}-${pluginversion}"/>
|
||||
<property name="jdeveloper9052.install.dir" value="/home/tom/pmd/ides/jdev9052/jdev/lib/ext/${ant.project.name}-${pluginversion}"/>
|
||||
<property name="jdeveloper1012.install.dir" value="c:/data/jdev1012/jdev/lib/ext/${ant.project.name}-${pluginversion}"/>
|
||||
|
||||
|
||||
|
@ -40,6 +40,9 @@ public class SettingsPanel extends DefaultTraversablePanel {
|
||||
if (index != -1) {
|
||||
JCheckBox box = (JCheckBox)getModel().getElementAt(index);
|
||||
String example = rules.getRule(box).getExample();
|
||||
while (example.charAt(0) == '\r' || example.charAt(0) == '\n' || example.charAt(0) == '\t' || example.charAt(0) == ' ') {
|
||||
example = example.substring(1);
|
||||
}
|
||||
exampleTextArea.setText(example);
|
||||
exampleTextArea.setCaretPosition(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user