Minor cleanups

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4289 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2006-03-10 14:31:42 +00:00
parent 457c61e0d3
commit 65fa2711e5
2 changed files with 4 additions and 1 deletions

View File

@ -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}"/>

View File

@ -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);
}