Revision d657d3eb
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/categorical/CategoricalDataCellEditor.java | ||
---|---|---|
67 | 67 |
*/ |
68 | 68 |
@Override |
69 | 69 |
protected Control activateCell(Composite parent, Object originalCanonicalValue) { |
70 |
Control editorControl = super.activateCell(parent, originalCanonicalValue); |
|
71 |
((NatCombo)editorControl).addSelectionListener(new SelectionListener() { |
|
72 |
@Override |
|
73 |
public void widgetSelected(SelectionEvent e) { |
|
74 |
matrix.setDirty(); |
|
75 |
} |
|
76 |
@Override |
|
77 |
public void widgetDefaultSelected(SelectionEvent e) { |
|
78 |
} |
|
79 |
}); |
|
80 |
return editorControl; |
|
70 |
if(matrix.getBodyDataProvider().getRowObject(this.getRowIndex()) instanceof RowWrapper){ |
|
71 |
Control editorControl = super.activateCell(parent, originalCanonicalValue); |
|
72 |
((NatCombo)editorControl).addSelectionListener(new SelectionListener() { |
|
73 |
@Override |
|
74 |
public void widgetSelected(SelectionEvent e) { |
|
75 |
matrix.setDirty(); |
|
76 |
} |
|
77 |
@Override |
|
78 |
public void widgetDefaultSelected(SelectionEvent e) { |
|
79 |
} |
|
80 |
}); |
|
81 |
return editorControl; |
|
82 |
} |
|
83 |
return null; |
|
81 | 84 |
} |
82 | 85 |
|
83 | 86 |
} |
Also available in: Unified diff
ref #7095 Disable cell editors for taxon node rows