Task #2130

Mis à jour par Sebastien Jacquot il y a environ un an

Done.

Location: /org.txm.specificities.core/src/org/txm/specificities/core/preferences/SpecificitiesPreferences.java

Names:
<pre>
public static final String PREFERENCES_PREFIX = "specificities_"; //$NON-NLS-1$

public static final String MAX_SCORE = PREFERENCES_PREFIX + "maxscore"; //$NON-NLS-1$
public static final String FORMAT = PREFERENCES_PREFIX + "format"; //$NON-NLS-1$

// charts
public static final String CHART_TRANSPOSE = PREFERENCES_PREFIX + "chart_transpose"; //$NON-NLS-1$
public static final String CHART_DRAW_BARS = PREFERENCES_PREFIX + "chart_draw_bars"; //$NON-NLS-1$
public static final String CHART_DRAW_LINES = PREFERENCES_PREFIX + "chart_draw_lines"; //$NON-NLS-1$
public static final String CHART_BANALITY = PREFERENCES_PREFIX + "chart_banality"; //$NON-NLS-1$
</pre>

Values:

<pre>
preferences.put(FORMAT, "%,.1f");
preferences.putInt(MAX_SCORE, 1);

preferences.putBoolean(CHART_TRANSPOSE, false);
preferences.putBoolean(CHART_DRAW_BARS, true);
preferences.putBoolean(CHART_DRAW_LINES, false);
preferences.putFloat(CHART_BANALITY, 2);
</pre>

h3. Validation tests

* check the preferences are well filled in the user command preferences page

Retour