diff options
Diffstat (limited to 'codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/BasicProblemPreference.java')
-rw-r--r-- | codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/BasicProblemPreference.java | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/BasicProblemPreference.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/BasicProblemPreference.java index ced90b26b2b..ebf1cb87c01 100644 --- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/BasicProblemPreference.java +++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/BasicProblemPreference.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2012 Alena Laskavaia + * Copyright (c) 2009, 2012 Alena Laskavaia * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -20,9 +20,9 @@ import java.util.regex.Pattern; /** * Preference representing a problem preference of a basic type. - * + * * @see IProblemPreferenceDescriptor.PreferenceType for types. - * + * */ public class BasicProblemPreference extends AbstractProblemPreference { protected Object value; @@ -35,7 +35,7 @@ public class BasicProblemPreference extends AbstractProblemPreference { /** * Set preferene type - * + * * @param type */ public void setType(PreferenceType type) { @@ -46,7 +46,7 @@ public class BasicProblemPreference extends AbstractProblemPreference { /** * Generate an info with given key and label - * + * * @param key * - property id (use in actual property hash of a checker) * @param label @@ -61,7 +61,7 @@ public class BasicProblemPreference extends AbstractProblemPreference { /** * Generate an info with given key and label - * + * * @param key * - property id (use in actual property hash of a checker) * @param label @@ -93,7 +93,7 @@ public class BasicProblemPreference extends AbstractProblemPreference { /* * (non-Javadoc) - * + * * @see * org.eclipse.cdt.codan.core.param.IProblemPreferenceValue#importValue( * java.lang.String) @@ -103,20 +103,20 @@ public class BasicProblemPreference extends AbstractProblemPreference { if (str.startsWith("\"")) //$NON-NLS-1$ str = unescape(str); switch (getType()) { - case TYPE_STRING: - setValue(str); - break; - case TYPE_INTEGER: - setValue(Integer.parseInt(str)); - break; - case TYPE_BOOLEAN: - setValue(Boolean.valueOf(str)); - break; - case TYPE_FILE: - setValue(new File(str)); - break; - default: - throw new IllegalArgumentException(getType() + " is not supported for basic type"); //$NON-NLS-1$ + case TYPE_STRING: + setValue(str); + break; + case TYPE_INTEGER: + setValue(Integer.parseInt(str)); + break; + case TYPE_BOOLEAN: + setValue(Boolean.valueOf(str)); + break; + case TYPE_FILE: + setValue(new File(str)); + break; + default: + throw new IllegalArgumentException(getType() + " is not supported for basic type"); //$NON-NLS-1$ } } |