This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 201205 - Right mouse button in editor windows doesn't work
Summary: Right mouse button in editor windows doesn't work
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
: 201642 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-22 10:59 UTC by Vladimir Riha
Modified: 2011-09-08 14:31 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Output from KeyEventDebug.jar (2.99 KB, text/plain)
2011-08-31 11:29 UTC, Ralph Ruijs
Details
messages.log (33.95 KB, text/plain)
2011-09-01 14:09 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2011-08-22 10:59:54 UTC
Open some file in editor window (I tried php and java) and use right mouse button inside the editor => context menu should be displayed, but nothing happens. 


Product Version: NetBeans IDE Dev (Build 201108210601)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 1 Miloslav Metelka 2011-08-24 14:29:30 UTC
This is likely a regression due to issue #89607. I'll fix it.
Comment 2 Ralph Ruijs 2011-08-31 11:29:51 UTC
Created attachment 110299 [details]
Output from KeyEventDebug.jar

This is the output I get when I single right-click from KeyEventDebug.jar
Comment 3 Vladimir Riha 2011-09-01 10:24:44 UTC
I'm no longer able to reproduce it in latest dev build, so marking as WORKSFORME 

Product Version: NetBeans IDE Dev (Build 201108310601)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 4 Jiri Skrivanek 2011-09-01 14:09:23 UTC
Finally I am able to reproduce it on my computer:

- start IDE with empty userdir (ergonomics cluster enabled)
- create Java project
- right-click in editor and it is OK, popup menu appears
- restart IDE
- turn off start page to not appear again and close it (maybe not needed)
- right-click in editor and it is OK
- restart IDE
- right-click in editor but nothing happens. There is an error message in messages.log that var\cache\all-ergonomics.dat cannot be saved.

Product Version: NetBeans IDE Dev (Build 201108310601)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb)
Comment 5 Jiri Skrivanek 2011-09-01 14:09:57 UTC
Created attachment 110316 [details]
messages.log
Comment 6 Miloslav Metelka 2011-09-01 15:44:57 UTC
Jirko, thanks for steps, I was able to reproduce on Ubuntu 11.04 as well.

As we were already tracking the problem before the cause is that the 

c.getUI().getEditorKit(c).getActionByName(ExtKit.buildPopupMenuAction).getDelegate()

gives ExtKit$BuildPopupMenuAction instead of NbEditorKit$NbBuildPopupMenuAction.
I will find out why that happens.
Comment 7 Jiri Skrivanek 2011-09-06 06:00:24 UTC
*** Bug 201642 has been marked as a duplicate of this bug. ***
Comment 8 Miloslav Metelka 2011-09-07 09:56:07 UTC
http://hg.netbeans.org/jet-main/rev/d161f2f4f927
Comment 9 Ralph Ruijs 2011-09-07 11:14:18 UTC
Verified, switched to the latest build and context menus are working. Switching back to an older build correctly shows the bug again and vice-versa.
Comment 10 Quality Engineering 2011-09-08 14:31:33 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/d161f2f4f927
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #201205 - Right mouse button in editor windows doesn't work.