Task #2132

Updated by Sebastien Jacquot over 2 years ago

Done.

Location: /org.txm.wordcloud.core/src/org/txm/wordcloud/core/preferences/WordCloudPreferences.java

Names:

<pre>
public static final String PREFERENCES_PREFIX = "wordcloud_";

public static final String MAX_WORDS = PREFERENCES_PREFIX + "max_words"; //$NON-NLS-1$
public static final String FMIN = PREFERENCES_PREFIX + "f_min"; //$NON-NLS-1$
public static final String ROT = PREFERENCES_PREFIX + "rotation_percent"; //$NON-NLS-1$
public static final String RANDOM_POSITION = PREFERENCES_PREFIX + "random_positions"; //$NON-NLS-1$
</pre>

Values:

<pre>
preferences.putInt(MAX_WORDS, 50);
preferences.putInt(FMIN, 20);
preferences.putInt(ROT, 10);
preferences.putBoolean(RANDOM_POSITION, false);
</pre>

h3. Validation tests

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

Back