Project

General

Profile

« Previous | Next » 

Revision b129022d

Added by Alex Theys about 12 years ago

AT: commiting latest changes to the Palm Use data extension

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/userecords/UseRecordDetailElement.java
19 19
import eu.etaxonomy.cdm.model.description.CategoricalData;
20 20
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
21 21
import eu.etaxonomy.cdm.model.description.State;
22
import eu.etaxonomy.cdm.model.description.StateData;
22 23
import eu.etaxonomy.taxeditor.store.CdmStore;
23 24
import eu.etaxonomy.taxeditor.store.TermStore;
24 25
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement;
......
119 120
			getEntity().setOrderRelevant(checkbox_orderRelevant.getSelection());
120 121
		}*/
121 122
		if(eventSource == combo_UseCategory){
122
			TermVocabulary<State> useCategoryVocabulary = TermVocabulary.NewInstance("Use category vocabulary", "use categories", null, null); 
123
			/*TermVocabulary<State> useCategoryVocabulary = TermVocabulary.NewInstance("Use category vocabulary", "use categories", null, null); 
123 124
			State useCategory1 = State.NewInstance("My first use category", "use category 1", null);
124 125
			useCategoryVocabulary.addTerm(useCategory1);
125
			getEntity().addState(useCategory1);
126
			List<State> currentStates = new ArrayList<State>();
127
			currentStates.add(combo_UseCategory.getSelection());
128
			getEntity().setStatesOnly(currentStates);
126
			getEntity().addState(useCategory1);*/
127
			StateData stateData = StateData.NewInstance(combo_UseCategory.getSelection());
128
			stateData.setState(combo_UseCategory.getSelection());
129
			//List<State> currentStates = new ArrayList<State>();
130
			//currentStates.add(combo_UseCategory.getSelection());
131
			getEntity().addState(stateData);
129 132
			//getEntity().addState(combo_UseCategory.getSelection());
130 133
			//.setOrderRelevant(combo_UseCategory.getSelection());
131 134
		}

Also available in: Unified diff