Revision f8da7861
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/CharacterMatrix.java | ||
---|---|---|
187 | 187 |
|
188 | 188 |
private Collection<SpecimenOrObservationBase> specimenCache = null; |
189 | 189 |
|
190 |
private ListDataProvider<RowWrapper> bodyDataProvider; |
|
191 |
|
|
190 | 192 |
@PostConstruct |
191 | 193 |
public void create(Composite parent) { |
192 | 194 |
if(CdmStore.isActive() && conversation==null){ |
... | ... | |
225 | 227 |
* data provider |
226 | 228 |
*/ |
227 | 229 |
SpecimenColumnPropertyAccessor columnPropertyAccessor = new SpecimenColumnPropertyAccessor(this); |
228 |
IDataProvider bodyDataProvider = new ListDataProvider<RowWrapper>(sortedList, columnPropertyAccessor);
|
|
230 |
bodyDataProvider = new ListDataProvider<RowWrapper>(sortedList, columnPropertyAccessor); |
|
229 | 231 |
|
230 | 232 |
/** |
231 | 233 |
* BODY layer |
... | ... | |
708 | 710 |
//register quantitative editor |
709 | 711 |
configRegistry.registerConfigAttribute( |
710 | 712 |
EditConfigAttributes.CELL_EDITOR, |
711 |
new QuantitativeDataCellEditor(feature.getRecommendedStatisticalMeasures(), this),
|
|
713 |
new QuantitativeDataCellEditor(feature, this), |
|
712 | 714 |
DisplayMode.EDIT, |
713 | 715 |
MatrixUtility.getProperty(feature)); |
714 | 716 |
} |
... | ... | |
735 | 737 |
} |
736 | 738 |
return states; |
737 | 739 |
} |
738 |
}, 5, this); |
|
740 |
}, 5, this, feature);
|
|
739 | 741 |
//register editor |
740 | 742 |
configRegistry.registerConfigAttribute(EditConfigAttributes.CELL_EDITOR, |
741 | 743 |
comboBoxCellEditor, |
... | ... | |
785 | 787 |
this.specimenCache = specimenCache; |
786 | 788 |
} |
787 | 789 |
|
790 |
/** |
|
791 |
* @return the bodyDataProvider |
|
792 |
*/ |
|
793 |
public ListDataProvider<RowWrapper> getBodyDataProvider() { |
|
794 |
return bodyDataProvider; |
|
795 |
} |
|
796 |
|
|
788 | 797 |
@Persist |
789 | 798 |
@Override |
790 | 799 |
public void save(IProgressMonitor monitor) { |
Also available in: Unified diff
ref #7095 Init description elements when activating cell editor