Project

General

Profile

« Previous | Next » 

Revision 80379c19

Added by Katja Luther almost 5 years ago

mend

display of status in drop down according to preference

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NamedAreaSelectionDialog.java
163 163
	private List<TermVocabulary> getAvailableVocabularies(){
164 164
	    vocabularies = new ArrayList();
165 165
	    CdmPreferenceCache cache = CdmPreferenceCache.instance();
166
//        CdmPreference pref = cache.get(PreferencePredicate.AvailableDistributionAreaVocabularies.getKey());
167
//	    if (pref != null && !pref.isAllowOverride()){
168
//            UUID[] preselectedVocabularyUuids = createVocabularyUuidList();
169
//
170
//            for(int i=0;i<preselectedVocabularyUuids.length;i++){
171
//                TermVocabulary preselectedVocabulary = CdmStore.getService(IVocabularyService.class).find(preselectedVocabularyUuids[i]);
172
//                vocabularies.add(preselectedVocabulary);
173
//            }
174
//        }else{
175
            vocabularies = CdmStore.getService(IVocabularyService.class).listByTermType(TermType.NamedArea, true, null, null, null, null);
176
//        }
177
		//List<TermVocabulary> vocabularies = CdmStore.getService(IVocabularyService.class).listByTermType(TermType.NamedArea, true, null, null, null, null);
178
		return vocabularies;
166
	    vocabularies = CdmStore.getService(IVocabularyService.class).listByTermType(TermType.NamedArea, true, null, null, null, null);
167
	    return vocabularies;
179 168
	}
180 169

  
181
//	/** {@inheritDoc} */
182
//	@Override
183
//	protected void search() {
184
//	    Control control =getSearchField();
185
//        String pattern = null;
186
//        if (control != null){
187
//            pattern = ((Text)control).getText();
188
//        }
189
//
190
//        if (pattern == null || pattern.equals("?")){
191
//            model = CdmStore.getService(ITermService.class).getUuidAndTitleCache(selectedVocabularies, limitOfInitialElements, null, PreferencesUtil.getGlobalLanguage());
192
//        }else{
193
//            model = CdmStore.getService(ITermService.class).getUuidAndTitleCache(selectedVocabularies, limitOfInitialElements, pattern, PreferencesUtil.getGlobalLanguage());
194
//        }
195
//	}
196 170

  
197
//	/** {@inheritDoc} */
198
//	@Override
199
//	protected Control createExtendedContentArea(Composite parent) {
200
//		return null;
201
//	}
202 171

  
203 172
	/** {@inheritDoc} */
204 173
	@Override

Also available in: Unified diff