*
*/
public class AvailableAreaVocabulariesPage extends AbstractAreaSelectionWizard implements ICdmEntitySessionEnabled{
+ boolean localPref;
/**
* @param pageName
*/
- public AvailableAreaVocabulariesPage(String pageName) {
+ public AvailableAreaVocabulariesPage(String pageName, boolean localPref) {
super(pageName);
+ this.localPref = localPref;
}
@Override
public void createControl(Composite parent) {
IPreferenceStore preferenceStore = PreferencesUtil.getPreferenceStore();
- String checkedValues = preferenceStore.getString(PreferencesUtil.DISTRIBUTION_VOCABULARIES);
+ // String checkedValues = preferenceStore.getString(PreferencesUtil.DISTRIBUTION_VOCABULARIES);
+
+ String vocString = PreferencesUtil.getPreferredVocabulariesForDistributionEditor(localPref);
// String grayedValues = preferenceStore.getString(PreferencesUtil.DISTRIBUTION_AREA_OCCURENCE_STATUS_GRAYED);
setTitle("Select vocabularies for Distribution Editor");
setDescription("In order to be able to modify and see the distribution status of taxa,\n"
}
});
- rememberCheckedValues(checkedValues, null);
+ rememberCheckedValues(vocString, null);
setControl(composite);
}