Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340954 - [10.7]right click doesnt show context menu in package explorer
Summary: [10.7]right click doesnt show context menu in package explorer
Status: RESOLVED DUPLICATE of bug 348309
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.2   Edit
Hardware: Macintosh Mac OS X
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-25 09:23 EDT by Anshul CLA
Modified: 2011-08-17 12:12 EDT (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anshul CLA 2011-03-25 09:23:37 EDT
Build Identifier: 3.6.2

I have eclipse 3.6.2 installed on MAC 10.7 (LION).


Reproducible: Always

Steps to Reproduce:
1.i created a project having many files making the package explorer scrollable.
Right click works only occasionally meaning context menu doesnt appear.
2.
3.
Comment 1 CLA 2011-05-31 06:45:04 EDT
I can confirm spurious context menu behaviour such as described here on OS X Lion Developer Preview 3 (DP3).
Comment 2 Scott Kovatch CLA 2011-07-20 13:14:04 EDT
Not an issue in 10.7 GM and Eclipse 3.7. This was likely fixed in a later Lion developer preview.
Comment 3 ppuffinburger CLA 2011-07-26 13:39:14 EDT
(In reply to comment #2)
> Not an issue in 10.7 GM and Eclipse 3.7. This was likely fixed in a later Lion
> developer preview.

This still happens sporadically with the Lion release and Eclipse 3.7.   I had seven projects in the Package Explorer and after a while I could no longer bring up the context menu on any project after the fourth one.    In order to get the context menus back I had to remove the projects and re-add them.   I have to do this any time I lose the context menus, no amount of restarting Eclipse helps.

I thought maybe it had to do with Lion's 'Restore windows when quitting and re-opening apps" as once I turned that off I haven't lost the context menu since (about a day so far).    Unfortunately another developer here also has this option off and is plagued with the random loss of the context menus.
Comment 4 CLA 2011-07-26 14:00:35 EDT
I'm getting a loss of context menu on my RCP application. Can we re-open this bug for further investigation?
Comment 5 Felipe Heidrich CLA 2011-07-26 14:14:40 EDT
Lakshmi, please investigate.
Comment 6 Lakshmi P Shanmugam CLA 2011-07-27 09:19:31 EDT
(In reply to comment #5)
> Lakshmi, please investigate.

Looks like its specific to Mac Lion. I don't have it yet...
Comment 7 Praveen CLA 2011-07-27 12:51:11 EDT
With Mac Lion, I have seen the context menu disappearing only after long usage of Eclipse (appr at least 6 hours). Restarting the Eclipse helps in regaining back the solid state.

I will take time to see whether I can dig into any useful info if I get chance to hit this problem again.
Comment 8 Eric Bodden CLA 2011-07-28 07:42:31 EDT
Same problem here. Pretty annoying... Let me know if I can help you with additional information.
Comment 9 Tim CLA 2011-07-29 12:14:20 EDT
Same problem here on Eclipse 3.6.1.r361. Restarting Eclipse fixes the issue for a while.
Comment 10 CLA 2011-07-29 12:32:05 EDT
The symptoms I see are as follows in my RCP app using a Tree component and TreeViewer on Lion 10.7 full release:

- Expand tree nodes until the Tree shows scroll bars. Context menu works.
- Close all tree nodes so only single, collapsed node shows.
- Expand tree nodes again. Context menu does not work when right-clicking on tree nodes, have to right-click further down the tree (not on tree node) to get it to work
Comment 11 CLA 2011-07-29 16:27:34 EDT
It seems that after expanding and contracting tree nodes, there are certain dead zones where the context menu does not activate. I cannot pin it down to a cause.
Comment 12 CLA 2011-07-29 16:29:38 EDT
If anyone gets this problem in Package Explorer, try closing the Package Explorer View and re-opening it.
Comment 13 Silenio Quarti CLA 2011-08-05 11:52:50 EDT
I have not been able to reproduce this problem, but I believe its root cause is the same as what I mentioned in 

https://bugs.eclipse.org/bugs/show_bug.cgi?id=348309#c6

Somehow the NSOutlineView does not become higher as items are expanded when we overwrite the implementation of setFrameSize:.

Please could you try the latest and let me know if you can still reproduce it? For now, the code is only available from GIT, but we should have a integration build with the changes next week.
Comment 14 Silenio Quarti CLA 2011-08-17 12:12:13 EDT
Marking as duplicate. Please reopen if you still see the problem in the latest I-build for 3.8.

*** This bug has been marked as a duplicate of bug 348309 ***