Task #2122

Task #2425: Check the default preferences of all commands

CA, default preferences

Ajouté par Sebastien Jacquot il y a presque 2 ans. Mis à jour il y a 2 mois.

Statut:Closed Début:10/04/2017
Priorité:Normal Echéance:
Assigné à:- % réalisé:

100%

Catégorie:Development Temps passé: -
Version cible: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);

Historique

#1 Mis à jour par Sebastien Jacquot il y a presque 2 ans

  • Tâche parente changé de #1464 à #2111

#2 Mis à jour par Sebastien Jacquot il y a presque 2 ans

  • Description mis à jour (diff)
  • Statut changé de New à Feedback
  • % réalisé changé de 0 à 80

#3 Mis à jour par Sebastien Jacquot il y a presque 2 ans

Note: CA uses its own lexical table preferences, see if we rather need to use the Lexical Table command preferences.

#4 Mis à jour par Sebastien Jacquot il y a 8 mois

  • Tâche parente changé de #2111 à #2425

#5 Mis à jour par Sebastien Jacquot il y a 2 mois

  • Statut changé de Feedback à Closed
  • % réalisé changé de 80 à 100

Formats disponibles : Atom PDF