Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 120656
Collapse All | Expand All

(-)src/org/eclipse/jface/dialogs/PopupDialog.java (-2 / +8 lines)
Lines 741-749 Link Here
741
		Rectangle[] r = new Rectangle[] { shell.getBounds() };
741
		Rectangle[] r = new Rectangle[] { shell.getBounds() };
742
		tracker.setRectangles(r);
742
		tracker.setRectangles(r);
743
743
744
		// Ignore any deactivate events caused by opening the tracker.
745
		// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=120656
746
		boolean oldListenToDeactivate = listenToDeactivate;
747
		listenToDeactivate = false;
744
		if (tracker.open()) {
748
		if (tracker.open()) {
745
			shell.setBounds(tracker.getRectangles()[0]);
749
			if (shell != null && !shell.isDisposed()) {
746
750
				shell.setBounds(tracker.getRectangles()[0]);
751
			}
752
			listenToDeactivate = oldListenToDeactivate;
747
		}
753
		}
748
	}
754
	}
749
755

Return to bug 120656