This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 459843 - [Contributions] Web Services context menu missing from Java classes in latest 3.7.0 build
Summary: [Contributions] Web Services context menu missing from Java classes in latest...
Status: VERIFIED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.5   Edit
Hardware: PC Windows All
: P3 major (vote)
Target Milestone: 4.5 M6   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-12 18:17 EST by Shane Clarke CLA
Modified: 2015-04-06 10:46 EDT (History)
12 users (show)

See Also:


Attachments
Archive of two plugins (10.30 KB, application/zip)
2015-02-25 16:31 EST, Keith Chong CLA
no flags Details
Deployable jar for first plugin (2.91 KB, application/x-java-archive)
2015-02-25 16:33 EST, Keith Chong CLA
no flags Details
Deployable jar for second plugin (2.96 KB, application/x-java-archive)
2015-02-25 16:37 EST, Keith Chong CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shane Clarke CLA 2015-02-12 18:17:50 EST
The 'Web Services' context menu is missing when right-clicking on a Java class in the latest 3.7.0 build.

http://build.eclipse.org/webtools/committers/wtp-R3.7.0-I/20150212000137/I-3.7.0-20150212000137/
Comment 1 Keith Chong CLA 2015-02-13 17:55:35 EST
Rerouting this to Platform.

The org.eclipse.ui.popupMenus objectContribution extension seems to be broken in 4.5 M5 and is a regression.

This could be a symptom of the underlying problem:

If you define the objectContribution menu in one plug-in and the objectContribution action in another plug-in whose menubarPath is set appropriately, then the menu doesn't show up.

If you define both the menu and the action in the same objectContribution extension (in the same plugin), then the menu shows up.
Comment 2 David Williams CLA 2015-02-16 09:06:16 EST
UI Team ... this does sound like a valid regression. 
Anyone know of a change that it might be related to? 

Also adding Tom, since it also looks related to "class loading", possibly. 

Shane, and/or Keith, from the description, it sounds like maybe you could provide a small, standalone "sample" that showed the problem? And would show it working in previous milestones? That sample would be helpful, since could provide the foundation of a unit test ... since from the description, (and, my limited understanding) sounds like this would be a common pattern? 

Thanks,
Comment 3 Keith Chong CLA 2015-02-25 16:31:52 EST
Created attachment 251111 [details]
Archive of two plugins
Comment 4 Keith Chong CLA 2015-02-25 16:33:17 EST
Created attachment 251112 [details]
Deployable jar for first plugin
Comment 5 Keith Chong CLA 2015-02-25 16:37:07 EST
Created attachment 251113 [details]
Deployable jar for second plugin

The archive contains the source.
Place the two deployable jars in the dropins folder.
Launch Eclipse.
Bring up the context menu on a Java file from a Java Project.
There should be a menu: Submenu->MenuJavaCompilationUnit
Comment 6 Steve Francisco CLA 2015-03-05 11:33:11 EST
adjusting target to 4.5m6 since I believe that was the intent
Comment 7 Steve Francisco CLA 2015-03-06 13:42:57 EST
I confirmed that the Submenu shows up when used with 4.5 M4 but not with 4.5 M5, so a change between those milestones is responsible.
Comment 8 Dani Megert CLA 2015-03-24 07:46:08 EDT
I can't reproduce this anymore using 4.5 M6:
http://download.eclipse.org/eclipse/downloads/drops4/S-4.5M6-201503200800/
Comment 9 Keith Chong CLA 2015-04-06 10:46:45 EDT
Verified. I can no longer reproduce the problem using 4.5M6.