| trying to get white space/empty space within a jface listviewer [message #673268] |
Mon, 23 May 2011 00:33 |
sam mn Messages: 25 Registered: August 2010 |
Junior Member |
|
|
trying to get white space/empty space within a jface listviewer
Uptill now, i am trying to get the white space with the below mentioned logic, but this is not working consistently, is there any other method ??
listViewer.getList().addMouseListener(new MouseAdapter() {
@Override public void mouseUp(MouseEvent e) {
final list = listViewer.getList();
final int maxY = list.getBounds().y + list.getItemCount() * list.getItemHeight();
if (e.y > maxY)
listViewer.setSelection(StructuredSelection.EMPTY);
}
});
[Updated on: Mon, 23 May 2011 00:34] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.01439 seconds