Revision 9767c1ad
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorConfigLabelAccumulator.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.taxeditor.bulkeditor.e4; |
10 | 10 |
|
11 |
import org.eclipse.nebula.widgets.nattable.NatTable; |
|
12 | 11 |
import org.eclipse.nebula.widgets.nattable.data.ListDataProvider; |
13 | 12 |
import org.eclipse.nebula.widgets.nattable.grid.data.DefaultColumnHeaderDataProvider; |
14 | 13 |
import org.eclipse.nebula.widgets.nattable.layer.LabelStack; |
... | ... | |
24 | 23 |
*/ |
25 | 24 |
public class BulkEditorConfigLabelAccumulator implements IConfigLabelAccumulator { |
26 | 25 |
|
27 |
public static final String BOOLEAN_COLUMN = "boolean_column"; |
|
28 |
|
|
29 | 26 |
private ListDataProvider<CdmBase> dataProvider; |
30 | 27 |
private AbstractBulkEditorInput input; |
31 |
private NatTable natTable; |
|
32 | 28 |
private DefaultColumnHeaderDataProvider colHeaderDataProvider; |
33 | 29 |
|
34 |
public BulkEditorConfigLabelAccumulator(NatTable natTable, ListDataProvider<CdmBase> dataProvider,
|
|
30 |
public BulkEditorConfigLabelAccumulator(ListDataProvider<CdmBase> dataProvider, |
|
35 | 31 |
DefaultColumnHeaderDataProvider colHeaderDataProvider, AbstractBulkEditorInput input) { |
36 |
super(); |
|
37 | 32 |
this.dataProvider = dataProvider; |
38 | 33 |
this.colHeaderDataProvider = colHeaderDataProvider; |
39 | 34 |
this.input = input; |
40 |
this.natTable = natTable; |
|
41 | 35 |
} |
42 | 36 |
|
43 | 37 |
|
... | ... | |
47 | 41 |
return; |
48 | 42 |
} |
49 | 43 |
if(input.isBooleanProperty(colHeaderDataProvider.getColumnHeaderLabel(columnPosition))){ |
50 |
configLabels.addLabel(BOOLEAN_COLUMN); |
|
44 |
configLabels.addLabel(BulkEditorConfigLabelAccumulatorHeader.BOOLEAN_COLUMN);
|
|
51 | 45 |
} |
52 | 46 |
CdmBase rowObject = dataProvider.getRowObject(rowPosition); |
53 | 47 |
if(input.getMergeCandidates().contains(rowObject)){ |
Also available in: Unified diff
ref #7502 Show lock icon in header