Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354846 - Bug in oep.modelexplorer.widgets.ModelContentProvider prevents the history selection from working in the reference selection dialog.
Summary: Bug in oep.modelexplorer.widgets.ModelContentProvider prevents the history se...
Status: CLOSED WONTFIX
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.8.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-16 11:12 EDT by Alain Le Guennec CLA
Modified: 2017-09-26 15:42 EDT (History)
2 users (show)

See Also:


Attachments
Proposed patch to fix the issue. (780 bytes, application/octet-stream)
2011-08-16 11:17 EDT, Alain Le Guennec CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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