[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-swt-dev] Problem with TabFolder, MouseListener and RedHat 5
|
Hi,
I have a problem using the TabFolder with RedHat 5.
I have a TabFolder with 2 TabItem and a MouseListener on the TabFolder.
When I was on RedHat 4 , my code worked properly, but since i've changed to RedHat 5, my listener is never called.
My code :
public void createPartControl(Composite parent) {
TabFolder tabs = new TabFolder(parent, SWT.NONE);
tabs.addMouseListener(new MouseListener() {
public void mouseDoubleClick(MouseEvent e) {
// Nothing to do
}
public void mouseDown(MouseEvent e) {
// Nothing to do
}
public void mouseUp(MouseEvent e) {
fillTable();
int i = tabs.getSelectionIndex();
for (TabItem it : tabs.getItems()) {
it.setControl(null);
}
tabs.getItem(i).setControl(table);
}
});
tabs.setVisible(false);
}
Have you got an idea why the mouseUp method is never used (I've seen it in eclipse debug mode)?
Thanks in advance,
Nicolas