diff --git a/pmd-eclipse/.classpath b/pmd-eclipse/.classpath index 13d6aca0fd..5e196de323 100644 --- a/pmd-eclipse/.classpath +++ b/pmd-eclipse/.classpath @@ -3,7 +3,7 @@ - + - + diff --git a/pmd-eclipse/src/net/sourceforge/pmd/eclipse/RuleSetWriter.java b/pmd-eclipse/src/net/sourceforge/pmd/eclipse/RuleSetWriter.java index f3c459133b..88662b9ef2 100644 --- a/pmd-eclipse/src/net/sourceforge/pmd/eclipse/RuleSetWriter.java +++ b/pmd-eclipse/src/net/sourceforge/pmd/eclipse/RuleSetWriter.java @@ -4,9 +4,9 @@ import java.io.OutputStream; import java.io.PrintStream; import java.util.Enumeration; import java.util.Iterator; +import java.util.Properties; import net.sourceforge.pmd.Rule; -import net.sourceforge.pmd.RuleProperties; import net.sourceforge.pmd.RuleSet; /** @@ -18,6 +18,9 @@ import net.sourceforge.pmd.RuleSet; * @version $Revision$ * * $Log$ + * Revision 1.2 2003/10/14 21:26:32 phherlin + * Upgrading to PMD 1.2.2 + * * Revision 1.1 2003/06/30 20:16:06 phherlin * Redesigning plugin configuration * @@ -161,12 +164,11 @@ public class RuleSetWriter { m_line.append(""); outputLine(); indent(); - RuleProperties properties = rule.getProperties(); + Properties properties = rule.getProperties(); for(Enumeration keys = properties.keys(); keys.hasMoreElements(); outputLine()) { String name = (String)keys.nextElement(); - String value = properties.getValue(name); - String valueType = properties.getValueType(name); + String value = properties.getProperty(name); setupNewLine(); m_line.append(""); } diff --git a/pmd-eclipse/src/net/sourceforge/pmd/eclipse/preferences/RuleProperty.java b/pmd-eclipse/src/net/sourceforge/pmd/eclipse/preferences/RuleProperty.java index 57c86d85bf..866716c3bc 100644 --- a/pmd-eclipse/src/net/sourceforge/pmd/eclipse/preferences/RuleProperty.java +++ b/pmd-eclipse/src/net/sourceforge/pmd/eclipse/preferences/RuleProperty.java @@ -9,6 +9,9 @@ import net.sourceforge.pmd.Rule; * @version $Revision$ * * $Log$ + * Revision 1.2 2003/10/14 21:26:32 phherlin + * Upgrading to PMD 1.2.2 + * * Revision 1.1 2003/06/30 20:16:06 phherlin * Redesigning plugin configuration * @@ -58,14 +61,6 @@ public class RuleProperty { return property; } - /** - * Returns the type. - * @return String - */ - public String getType() { - return rule.getProperties().getValueType(property); - } - /** * Returns the value. * @return String @@ -79,7 +74,7 @@ public class RuleProperty { * @param booleanValue The booleanValue to set */ public void setBooleanValue(boolean booleanValue) { - rule.getProperties().setValue(property, String.valueOf(booleanValue)); + rule.getProperties().setProperty(property, String.valueOf(booleanValue)); } /** @@ -87,7 +82,7 @@ public class RuleProperty { * @param doubleValue The doubleValue to set */ public void setDoubleValue(double doubleValue) { - rule.getProperties().setValue(property, String.valueOf(doubleValue)); + rule.getProperties().setProperty(property, String.valueOf(doubleValue)); } /** @@ -95,15 +90,7 @@ public class RuleProperty { * @param integerValue The integerValue to set */ public void setIntegerValue(int integerValue) { - rule.getProperties().setValue(property, String.valueOf(integerValue)); - } - - /** - * Sets the type. - * @param type The type to set - */ - public void setType(String type) { - rule.getProperties().setValueType(property, type); + rule.getProperties().setProperty(property, String.valueOf(integerValue)); } /** @@ -111,7 +98,7 @@ public class RuleProperty { * @param value The value to set */ public void setValue(String value) { - rule.getProperties().setValue(property, value); + rule.getProperties().setProperty(property, value); } }