Task #2131

Updated by Sebastien Jacquot over 2 years ago

Done.

Location: /org.txm.textsbalance.core/src/org/txm/textsbalance/core/preferences/TextsBalancePreferences.java

Names:

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

public static final String GROUP_BY_WORDS = PREFERENCES_PREFIX + "count_by_words"; //$NON-NLS-1$
public static final String METHOD = PREFERENCES_PREFIX + "method"; //$NON-NLS-1$

// local result preferences
public static final String STRUCTURAL_UNIT = PREFERENCES_PREFIX + "structural_unit"; //$NON-NLS-1$
public static final String STRUCTURAL_UNIT_PROPERTY_INDEX = PREFERENCES_PREFIX + "structural_unit_property_index"; //$NON-NLS-1$
</pre>

Values:
<pre>

preferences.putBoolean(GROUP_BY_WORDS, true);
preferences.putInt(METHOD, 2);
preferences.put(STRUCTURAL_UNIT, "text");
preferences.putInt(STRUCTURAL_UNIT_PROPERTY_INDEX, 0);

</pre>

Back