Community
Participate
Working Groups
Rectangle[] r = new Rectangle[] { shell.getBounds() };
tracker.setRectangles(r);
// Ignore any deactivate events caused by opening the tracker.
// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=120656
boolean oldListenToDeactivate = listenToDeactivate;
listenToDeactivate = false;
if (tracker.open()) {
shell.setBounds(tracker.getRectangles()[0]);
if (shell != null && !shell.isDisposed()) {
}
listenToDeactivate = oldListenToDeactivate;