I hope to detect the mouse drag the TitleAreaDialog. So I try to add "DragDetectListener" and "MouseListener" to the dialog's shell. I found that when I drag this dialog, it doesn't call this listener. I also try to add "SWT.DragDetect" to shell.getDisplay() but this did not help.
Does anyone add this listener before?
shell.addDragDetectListener(new DragDetectListener() {
@Override
public void dragDetected(DragDetectEvent e) {
System.out.println("dragDetected-------------");
}
});