Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335835 - [Model Explorer] ModelExplorerView#revealSemanticElement() does not always reveal element
Summary: [Model Explorer] ModelExplorerView#revealSemanticElement() does not always re...
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Patrick Tessier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 320908
  Show dependency tree
 
Reported: 2011-01-31 07:17 EST by Yann Tanguy CLA
Modified: 2011-02-07 12:24 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yann Tanguy CLA 2011-01-31 07:17:34 EST
ModelExplorerView#revealSemanticElement() does not seem to work anymore in trunk (0.8.0).

In case the element to reveal is directly owned by the root (in a non-collapsible manner) the reveal and select may work, but it wont for most cases.

This looks like a regression (worked in 0.7.X).
Comment 1 Patrick Tessier CLA 2011-02-07 12:24:17 EST
right, the bug comes from bad adaptation of a linkItem
	to obtain the reference do ((IAdaptable)wrapper).getAdapter(EReference.class);
	not ((IAdaptable)wrapper).getAdapter(EObject.class)


done in the revision 3934 (in the head)