public void handleLayerEvent(ILayerEvent event) {
if(event instanceof CellSelectionEvent){
CellSelectionEvent cellSelectionEvent = (CellSelectionEvent)event;
- Collection<ILayerCell> selectedCells = cellSelectionEvent.getSelectionLayer().getSelectedCells();
- StructuredSelection selection = new StructuredSelection();
- if(selectedCells.size()==1){
- ILayerCell cell = selectedCells.iterator().next();
- Object dataValue = cell.getDataValue();
- if(dataValue!=null){
- selection = new StructuredSelection(dataValue);
+ int columnPosition = cellSelectionEvent.getColumnPosition();
+ if(columnPosition>LEADING_COLUMN_COUNT){
+ Collection<ILayerCell> selectedCells = cellSelectionEvent.getSelectionLayer().getSelectedCells();
+ StructuredSelection selection = new StructuredSelection();
+ if(selectedCells.size()==1){
+ ILayerCell cell = selectedCells.iterator().next();
+ Object dataValue = cell.getDataValue();
+ if(dataValue!=null){
+ selection = new StructuredSelection(dataValue);
+ }
}
+ selService.setSelection(selection);
}
- selService.setSelection(selection);
}
}
});