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 00:33
sam mn is currently offline 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

Previous Topic:Download JFace
Next Topic:Help! an issue after removed the filter
Goto Forum:
  


Current Time: Fri Aug 01 08:10:40 EDT 2014

Powered by FUDForum. Page generated in 0.02003 seconds