Project: SWT
Bug 375721 Context menu position in StyledText should be below caret
Reported: 2012-03-30 09:34:38 | Status: resolved fixed

The context menu in StyledText should be opened below the caret. The current solution overlaps the text after the caret in most cases (when the menu opens downwards). org.eclipse.ui.actions.QuickMenuCreator#computeMenuLocation(StyledText) fixes this via: result.y += text.getLineHeight(text.getCaretOffset());

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java