Task #2130

Task #2425: Check the default preferences of all commands

Specificities, default preferences

Added by Sebastien Jacquot about 2 years ago. Updated 4 months ago.

Status:Closed Start date:04/10/2017
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:Development Spent time: -
Target version:TXM 0.8.0a (split/restructuration)

Description

Done.

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

Names:

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$

Values:

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

Validation tests

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

History

#1 Updated by Sebastien Jacquot about 2 years ago

  • Parent task changed from #1464 to #2138

#2 Updated by Sebastien Jacquot about 2 years ago

  • Description updated (diff)
  • Status changed from New to Feedback
  • % Done changed from 0 to 80

#3 Updated by Sebastien Jacquot about 1 year ago

  • Description updated (diff)

#4 Updated by Sebastien Jacquot 10 months ago

  • Parent task changed from #2138 to #2425

#5 Updated by Sebastien Jacquot 4 months ago

  • Status changed from Feedback to Closed
  • % Done changed from 80 to 100

Also available in: Atom PDF