updated test & text properties

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7190 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Brian Remedios
2011-03-07 06:33:47 +00:00
parent d722a837eb
commit a65d0b1697
2 changed files with 5 additions and 2 deletions

View File

@ -332,7 +332,7 @@ priority.column.name.pmd.tooltip = Original priority name as specified in PMD
priority.column.value = Value
priority.column.value.tooltip = Relative value, 1 = highest
priority.column.size = Size
priority.column.shape = Shape
priority.column.symbol = Symbol
priority.column.shape.tooltip = Decoration marker shape
priority.column.color = Color
priority.column.color.tooltip = Decoration marker color

View File

@ -9,6 +9,7 @@ import net.sourceforge.pmd.lang.rule.properties.CharacterMultiProperty;
import net.sourceforge.pmd.lang.rule.properties.CharacterProperty;
import net.sourceforge.pmd.lang.rule.properties.EnumeratedMultiProperty;
import net.sourceforge.pmd.lang.rule.properties.EnumeratedProperty;
import net.sourceforge.pmd.lang.rule.properties.FileProperty;
import net.sourceforge.pmd.lang.rule.properties.FloatMultiProperty;
import net.sourceforge.pmd.lang.rule.properties.FloatProperty;
import net.sourceforge.pmd.lang.rule.properties.IntegerMultiProperty;
@ -68,6 +69,7 @@ public class NonRuleWithAllPropertyTypes extends AbstractJavaRule {
public static final EnumeratedProperty<Class> enumType = new EnumeratedProperty<Class>("enumType", "Enumerated choices", new String[] {"String", "Object"}, new Class[] {String.class, Object.class}, 1, 5.0f);
public static final EnumeratedMultiProperty<Class> multiEnumType = new EnumeratedMultiProperty<Class>("multiEnumType", "Multiple enumerated choices", new String[] {"String", "Object"}, new Class[] {String.class, Object.class}, new int[] {0,1}, 5.0f);
public static final FileProperty singleFile = new FileProperty("singleFile", "File value", null , 3.0f);
public NonRuleWithAllPropertyTypes() {
super();
@ -89,5 +91,6 @@ public class NonRuleWithAllPropertyTypes extends AbstractJavaRule {
definePropertyDescriptor(singleMethod);
definePropertyDescriptor(multiMethod);
definePropertyDescriptor(multiEnumType);
definePropertyDescriptor(singleFile);
}
}