Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354846

Summary: Bug in oep.modelexplorer.widgets.ModelContentProvider prevents the history selection from working in the reference selection dialog.
Product: [Modeling] Papyrus Reporter: Alain Le Guennec <alain.leguennec>
Component: CoreAssignee: Project Inbox <mdt-papyrus-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: eclipse-bugzilla, yann.tanguy
Version: 0.8.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch to fix the issue. none

Description Alain Le Guennec CLA 2011-08-16 11:12:28 EDT

    
Comment 1 Alain Le Guennec CLA 2011-08-16 11:17:02 EDT
Created attachment 201584 [details]
Proposed patch to fix the issue.
Comment 2 Alain Le Guennec CLA 2011-08-16 11:19:50 EDT
There is a bug in oep.modelexplorer.widgets.ModelContentProvider which prevents the searchPath function from finding some objects in the tree, which in turn prevents the history selection from working in the reference-selection dialog.
The issue is that searchPath only traverse each EReference once, whereas EReference objects should always be traversed because the source EObject might be different (EReference are meta-level instances, not model-level instances).
Comment 3 Alain Le Guennec CLA 2011-08-16 11:22:16 EDT
The patch is against revision 5230 on the 0.8.X branch.
(1) I, Alain LE GUENNEC, wrote 100% of the code I've provided. 
(2) This code contains no cryptography 
(3) I have the right to contribute the code to Eclipse. 
(4) I contribute the content under the EPL.
Comment 4 Yann Tanguy CLA 2011-08-29 03:11:08 EDT
Camille, can you check this (and apply the patch if its ok) ?
Comment 5 Vincent Lorenzo CLA 2017-09-26 15:42:53 EDT
All the codes has been refactored since the creation of this bug. I can't found the initial class. I set this bug a closed wontfix