Unwanted behaviour: SelectionChanged on Mouseover [message #1669020] |
Thu, 12 March 2015 18:47 |
Thomas Kernstock Messages: 29 Registered: July 2009 Location: Vienna |
Junior Member |
|
|
Hi,
I'm using nattable 1.2.0.201501272102 in eclipse for my application. I defined a RowselectionProvider with mutliple selection. When a user selects more than one row I check if all rows have the same features. Otherwise I show an errordialog.
Now when I press OK in that dialog an move the mouse cursor over the rows, they automatically get selected!!
Is this a bug or do I have to confige something in a nattable configuration to change that behaviour?
You can easely see what I mean by changing the _5054_SelectionProviderExample beginning at line 243 => inserting a dialog:
selectionProvider
.addSelectionChangedListener(new ISelectionChangedListener() {
@Override
public void selectionChanged(SelectionChangedEvent event) {
log("Selection changed:");
IStructuredSelection selection = (IStructuredSelection) event
.getSelection();
@SuppressWarnings("rawtypes")
Iterator it = selection.iterator();
while (it.hasNext()) {
Person selected = (Person) it.next();
log(" " + selected.getFirstName() + " "
+ selected.getLastName());
}
MessageDialog.openConfirm(Display.getDefault().getActiveShell(), "Interrupt", "Interrupt selection");
}
});
Help would be really appreciated, since this behavour is not very usefull for a good UX.
Thank you in advance
Thomas
[Updated on: Thu, 12 March 2015 19:03] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.14096 seconds