java - How to prevent mouse up event on double click in a table in jface -


i working on eclipse rcp. have dialog contains swt table many rows. when double click row in table, dialog disposed , selected item displayed in tree view. works fine.

now, there widget on left (see figure) navigation different perspectives in software. problem is, when place dialog on top of widget , double click on table row, 2 events fired.

  1. double click of table dialog.
  2. single click on widget item.

enter image description here

in figure, red box represents widget underneath dialog. if double click on table item within red box, widget takes event. if click anywhere outside red box, works fine. widget items open new perspective. so, the problem is, looks double clicking on table causing perspective switch. want correct this. not have access code widget. have full access table. question is, how can prevent happening?

at moment, after trying different workarounds, observed call dispose on dialog, perspective switches (as long double click within red box).


Comments