Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » trying to get white space/empty space within a jface listviewer
trying to get white space/empty space within a jface listviewer [message #673268] Mon, 23 May 2011 04:33
sam mn is currently offline sam mnFriend
Messages: 26
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 04:34]

Report message to a moderator

Previous Topic:Download JFace
Next Topic:How do I obtain an Object of a particular ROW in TreeViewer
Goto Forum:
  


Current Time: Wed Apr 24 16:53:19 GMT 2024

Powered by FUDForum. Page generated in 0.02576 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top