Task #2125

Updated by Sebastien Jacquot about 3 years ago

Done.

Location: /org.txm.cah.core/src/org/txm/cah/core/preferences/CAHPreferences.java

Names:

<pre>
public static final String PREFERENCES_PREFIX = "cah_"; //$NON-NLS-1$
public static final String DISPLAY_2D = PREFERENCES_PREFIX + "display_2d"; //$NON-NLS-1$
public static final String METHOD = PREFERENCES_PREFIX + "method"; //$NON-NLS-1$
public static final String METRIC = PREFERENCES_PREFIX + "metric"; //$NON-NLS-1$
public static final String N_CLUSTERS = PREFERENCES_PREFIX + "n_clusters"; //$NON-NLS-1$
public static final String COLUMNS_COMPUTING = PREFERENCES_PREFIX + "columns_computing"; //$NON-NLS-1$
</pre>

Values:

<pre>
preferences.putBoolean(DISPLAY_2D, true);
preferences.putInt(N_CLUSTERS, 2);
preferences.put(METHOD, "ward");
preferences.put(METRIC, "euclidean");
preferences.putBoolean(COLUMNS_COMPUTING, true);
</pre>

Back