Bug 62703 refactoring & source quick menus location should be confined to workbench [quick menu]
I20040518 M9 testpass 1. Use eclipse without it covering the entire screen, but merely the lower left 2. Open JavaEditor.java 3. Put the editor caret somewhere on AbstractSelectionChangedListener::install 4. Without changing the selection, scroll to the very end of the end of the file 5. Press Alt+Shift+T/S to bring up the quick menu -> expected: the menu shows up somewhere in the eclipse workbench -> actual: the menu shows up on the very top of the screen, over other applications.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/JDTQuickMenuAction.java
private CompilationUnitEditor fEditor;
	
	public JDTQuickMenuAction(String commandId) {
		super(commandId);
	}
	public JDTQuickMenuAction(CompilationUnitEditor editor, String commandId) {
		super(commandId);
		fEditor= editor;
	}
	protected Point computeMenuLocation(StyledText text) {
		if (fEditor == null || text != fEditor.getViewer().getTextWidget())
			return null;
		return fEditor.getViewer().getTextWidget().toDisplay(computeWordStart());
	}
	
	private Point computeWordStart() {