| Summary: | [Contributions] popup menu item is missing in rcp application | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Enrico <enrico.hopf> | ||||||
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> | ||||||
| Status: | RESOLVED DUPLICATE | QA Contact: | Paul Webster <pwebster> | ||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | prakash, remy.suen | ||||||
| Version: | 3.4.1 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux-GTK | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Can you attach the sample RCP app itself? I can't reproduce this with my app. Also, did you set your viewer as your site selection provider? i.e. getSite().setSelectionProvider(viewer); PW hi,
i'll try to create an example rcp application with the same behavior
and yes, we set our viewer as selection provider:
@Override
public void createPartControl(Composite parent)
{
super.createPartControl(parent);
this.createActions();
this.initToolBars();
this.createContextMenu();
this.getSite().setSelectionProvider(getTableViewer());
Created attachment 132178 [details]
tar file with 2 eclipse projects to simulate this bug
i created 2 eclipse projects to simulate this bug
The popup menu of the main view of the attached sample rcp program contains 2 entries: [Action 1] and [View1 Command]. Executing the [View1 Command] opens a new view. If you open the popup menu again the entry [View1 Command] is not available any more. (In reply to comment #4) > Created an attachment (id=132178) [details] > tar file with 2 eclipse projects to simulate this bug > > i created 2 eclipse projects to simulate this bug > Sorry, I tried both on 3.4.2 and 3.5 but I still can't reproduce this thing. I could see the 'View 1 command' in both the views. Is there any specific steps to reproduce? Or is it Linux specific bug? this is a linux specific bug What 3.5 build are you testing on, by the way? This sounds suspiciously like bug 257188. we are using eclipse 3.4.1 and i also tested eclipse 3.4.2 with both version i don't have any problem to reproduce this bug on linux Whoops, sorry, I now realize that Prakash was the one that was testing on a 3.5 build and not you, Enrico. hi remy, it really sounds like bug 257188, so i just tried eclipse 3.5 m6 and it works, the popup menu item is always shown *** This bug has been marked as a duplicate of bug 257188 *** |
Created attachment 132033 [details] extract from plugin.xml when defining a popup menu item using a menuContribution in the plugin.xml of an eclipse rcp plugin, the menu item is not shown anymore in the popup menu when you select the menu item and open the popup menu a second time the visibility of the menu item is restricted with the following: <visibleWhen> <with variable="selection"> <count value="1"> </count> <iterate> <instanceof value="com.elaxy.mom.services.contribution.IOrderContributor"> </instanceof> </iterate> </with> </visibleWhen> the menu item is shown always when omitting <count value="1"></count> under windows the menu item is always shown