| Summary: | [Sync view] 'Show In' context menu item not available on multi-selection | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Dani Megert <daniel_megert> | ||||||||||||||
| Component: | Team | Assignee: | Tomasz Zarna <tomasz.zarna> | ||||||||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||||||||
| Severity: | normal | ||||||||||||||||
| Priority: | P4 | ||||||||||||||||
| Version: | 3.7 | ||||||||||||||||
| Target Milestone: | 3.7 M3 | ||||||||||||||||
| Hardware: | PC | ||||||||||||||||
| OS: | Windows XP | ||||||||||||||||
| Whiteboard: | |||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Dani Megert
Created attachment 175767 [details]
Fix v01
Created attachment 175768 [details]
mylyn/context/zip
The patch is no good. It doesn't work when a mix of plain and Java projects is selected in model sync with All Models on. It works fine in any other case. Created attachment 177325 [details]
Fix v02
Fix that makes ResourceModelActionProvider work for objects adapting to IResource. Action provider must be enabled for each element in the selection, so in case when we had a mix of JavaProjects and IProjects neither ResourceModelActionProvider nor RefactoringSynchronizationActionProvider was enabled. The change still needs to be checked if it doesn't introduce any side-effects.
(In reply to comment #4) > The change still needs to be checked if it doesn't introduce any side-effects. Haven't found time to verify that, moving to M3. Sorry. Created attachment 180546 [details]
Fix v03
Fix v02 wasn't good neither. Using ResourceModelContentProvider for all nodes adapting to IResource broke the Sync view when in All Models mode. The view didn't diplay children for Java projects.
The new fix still tries to adapt nodes to IResource but this time it will enable the action provider only, not the content provider like in the previous patch.
Created attachment 180547 [details]
Context menus in Sync view for an outgoing Java change
So far, the only side effect I have observed is the extra menu group for Java changes in the Sync view. But it looks more like a feature rather than a bug.
Created attachment 180593 [details]
Fix v04
One more thing, 'Show In' should not be available when one of the selected resources doesn't exist. So far, this was true only when all selected resources were files.
Fix v04 applied to HEAD. Available in builds >=N20101012-2000. Verified in N20101013-2000. Thanks Tomek! |