use of net.sourceforge.nattable.edit.editor.ICellEditor in project translationstudio8 by heartsome.
the class BodyCellEditorMouseEventMatcher method matches.
public boolean matches(NatTable natTable, MouseEvent event, LabelStack regionLabels) {
if (regionLabels != null && regionLabels.hasLabel(GridRegion.BODY)) {
LayerCell cell = natTable.getCellByPosition(natTable.getColumnPositionByX(event.x), natTable.getRowPositionByY(event.y));
ICellEditor cellEditor = natTable.getConfigRegistry().getConfigAttribute(EditConfigAttributes.CELL_EDITOR, cell.getDisplayMode(), cell.getConfigLabels().getLabels());
if (cellEditorClass.isInstance(cellEditor)) {
return true;
}
}
return false;
}
Aggregations