Community
Participate
Working Groups
I2002-12-18 Bringing up the context menu on the perspective bar on the left does not work. Closing perspectives is thus only possible via the Window menu.
Fixed > 20021219
*** Bug 32688 has been marked as a duplicate of this bug. ***
reopened because bug 32688 still sees the problem in RC1.
In 200303040010: - bringing up context menus in the perspective bar works (right mouse) - bringing up context menus over a break point works (right mouse) NOTE: The menu in question in 32688 is invoked in a non-standard way, by looking for mouse button 3, which doesn't exist. To see this is true, press and hold mouse button 3 in a Java editor. The menu comes up right away. Now press and hold over a breakpoint. The menu comes up on mouse release. If you can confirm this, please reopen 32688. Thanks.
Yes, confirmed. Reopening bug 32688.
I2003-03-19 Sorry but I fail to bring up the context menu via Ctrl-Click...
Boris, this bug has been closed because the context menu works from an SWT point of view (via the right mouse button). What you are experiencing is that it doesn't work for a Left-Control-click. However, this behavior results from a non-standard way of opening a context menu (see comment #4), it is not SWT's fault. Therefore I reopened bug #32688. Since the perspective bar has the same problem I will leave this PR open but transfer it to platform UI.
[Copied and adapted from bug #32688]: The perspective bar's context menu is opened by looking for mouse button 3, which doesn't exist on MacOS X even if you have a three button mouse. On MacOS X button 3 is reported as a button 1 together with the Control modifier key.
Will address for 2.2.
The fix is probably to change all context menu popup code from using a MouseListener (and testing MouseEvent.button == 3) to using SWT.MenuDetect listener: control.addListener(SWT.MenuDetect, new Listener() { public void handleEvent(Event event) { if (event.type == SWT.MenuDetect) { DO MENU CODE HERE } });
Made changes to EditorWorkbook.createControl, ViewPane.createTitleBar, and WorkbenchWindow.createShortcutBar. I've open bug 39082 on Text component so they can fix CompositeRulerCanvas. No changes has been released yet. Waiting for SWT to comment on bug 39081 first.
Got confirmation from SWT that event coordinates for MenuDetect will remain as relative to the screen (see bug 39081). Code was updated to deal with screen relative instead of control relative coordinates. Code released.