Task #2122
Task #2425: Check the default preferences of all commands
CA, default preferences
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.ca.core/src/org/txm/ca/core/preferences/CAPreferences.java
Names:
public static final String PREFERENCES_PREFIX = "ca_"; //$NON-NLS-1$ /** Lexical table FMIN. */ public static final String F_MIN = PREFERENCES_PREFIX + "lt_fmin"; //$NON-NLS-1$ /** Lexical table VMAX. */ public static final String V_MAX = PREFERENCES_PREFIX + "lt_vmax"; //$NON-NLS-1$ public static final String SHOW_INDIVIDUALS = PREFERENCES_PREFIX + "chart_show_individuals"; //$NON-NLS-1$ public static final String SHOW_VARIABLES = PREFERENCES_PREFIX + "chart_show_variables"; //$NON-NLS-1$ public static final String SHOW_POINT_SHAPES = PREFERENCES_PREFIX + "chart_show_point_shapes"; //$NON-NLS-1$ public static final String QUALITY_DISPLAY_FORMAT = PREFERENCES_PREFIX + "quality_display_format"; //$NON-NLS-1$ public static final String CONTRIB_DISPLAY_FORMAT = PREFERENCES_PREFIX + "contrib_display_format"; //$NON-NLS-1$ public static final String MASS_DISPLAY_FORMAT = PREFERENCES_PREFIX + "mass_display_format"; //$NON-NLS-1$ public static final String CHI_DISPLAY_FORMAT = PREFERENCES_PREFIX + "chi_display_format"; //$NON-NLS-1$ public static final String DIST_DISPLAY_FORMAT = PREFERENCES_PREFIX + "dist_display_format"; //$NON-NLS-1$ public static final String COS2_DISPLAY_FORMAT = PREFERENCES_PREFIX + "cos2_display_format"; //$NON-NLS-1$ public static final String COORD_DISPLAY_FORMAT = PREFERENCES_PREFIX + "coord_display_format"; //$NON-NLS-1$ public static final String FIRST_DIMENSION = PREFERENCES_PREFIX + "first_dimension"; //$NON-NLS-1$ public static final String SECOND_DIMENSION = PREFERENCES_PREFIX + "second_dimension"; //$NON-NLS-1$
Values:
preferences.putInt(F_MIN, 10); preferences.putInt(V_MAX, 200); String defaultFormat = "0.00"; //$NON-NLS-1$ preferences.put(QUALITY_DISPLAY_FORMAT, defaultFormat); preferences.put(CONTRIB_DISPLAY_FORMAT, defaultFormat); preferences.put(MASS_DISPLAY_FORMAT, defaultFormat); preferences.put(CHI_DISPLAY_FORMAT, defaultFormat); preferences.put(DIST_DISPLAY_FORMAT, defaultFormat); preferences.put(COS2_DISPLAY_FORMAT, defaultFormat); preferences.put(COORD_DISPLAY_FORMAT, defaultFormat); preferences.putBoolean(SHOW_INDIVIDUALS, true); preferences.putBoolean(SHOW_VARIABLES, true); preferences.putBoolean(SHOW_POINT_SHAPES, false); preferences.putInt(FIRST_DIMENSION, 1); preferences.putInt(SECOND_DIMENSION, 2);
History
#1 Updated by Sebastien Jacquot almost 4 years ago
- Parent task changed from #1464 to #2111
#2 Updated by Sebastien Jacquot almost 4 years ago
- Description updated (diff)
- Status changed from New to Feedback
- % Done changed from 0 to 80
#3 Updated by Sebastien Jacquot almost 4 years ago
Note: CA uses its own lexical table preferences, see if we rather need to use the Lexical Table command preferences.
#4 Updated by Sebastien Jacquot over 2 years ago
- Parent task changed from #2111 to #2425
#5 Updated by Sebastien Jacquot about 2 years ago
- Status changed from Feedback to Closed
- % Done changed from 80 to 100