Project

General

Profile

« Previous | Next » 

Revision 5aeccadc

Added by Katja Luther over 6 years ago

e4 migration of selection dialogs

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/FeatureSelectionDialog.java
1 1
/**
2 2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
36 36
				"Choose Feature", false, FeatureSelectionDialog.class.getCanonicalName(), feature);
37 37
		return getSelectionFromDialog(dialog);
38 38
	}
39
	
39

  
40 40
	/**
41 41
	 * @param shell
42 42
	 * @param conversation
......
53 53

  
54 54
	@Override
55 55
	protected Feature getPersistentObject(UUID uuid) {
56
		
56

  
57 57
		DefinedTermBase<?> term = CdmStore.getService(ITermService.class).load(uuid);
58
		
58

  
59 59
		if(term instanceof Feature){
60 60
			return (Feature) term;
61 61
		}
62
		
62

  
63 63
		return null;
64 64
	}
65 65

  
66 66
	@Override
67 67
	protected void search() {
68 68
		List<Feature> features = CdmStore.getService(ITermService.class).list(Feature.class, null, null, null, null);
69
		
69

  
70 70
		List<UuidAndTitleCache<Feature>> featureUuidAndTitleCache = new ArrayList<UuidAndTitleCache<Feature>>();
71
		
71

  
72 72
		for(Feature feature : features){
73 73
			UuidAndTitleCache<Feature> uuidAndTitleCache = new UuidAndTitleCache<Feature>(Feature.class, feature.getUuid(), feature.getId(), feature.getTitleCache());
74 74
			featureUuidAndTitleCache.add(uuidAndTitleCache);
75 75
		}
76
		
76

  
77 77
		model =  featureUuidAndTitleCache;
78 78
	}
79 79

  
......
81 81
	 * @see eu.etaxonomy.taxeditor.dialogs.filteredSelection.AbstractFilteredCdmResourceSelectionDialog#getNewWizardLinkText()
82 82
	 */
83 83
	@Override
84
	protected String getNewWizardLinkText() {
84
	protected String[] getNewWizardText() {
85 85
		return null;
86 86
	}
87 87

  

Also available in: Unified diff