Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 450425 - [PropertiesView] PropertySheet does not display contents for selected genmodel and ecore element on opening
Summary: [PropertiesView] PropertySheet does not display contents for selected genmode...
Status: CLOSED DUPLICATE of bug 425525
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-07 02:57 EST by Marco Descher CLA
Modified: 2014-11-07 05:26 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 Marco Descher CLA 2014-11-07 02:57:51 EST
1. Close the properties view
2. Select an element within the Ecore or genmodel editor
3. Open the properties view
-> the selected element is not shown, one has to reselect the resp. element for it to be visible

I already did some traces on this

OPEN ON SELECTED ELEMENT
selectionChanged org.eclipse.ui.views.properties.PropertySheet@69231217/null/null/[org.eclipse.emf.ecore.impl.EPackageImpl@4664cd32 (name: bug434102) (nsURI: uri, nsPrefix: prefix)]
partActivated null null [org.eclipse.emf.ecore.impl.EPackageImpl@4664cd32 (name: bug434102) (nsURI: uri, nsPrefix: prefix)]
partActivated null [org.eclipse.emf.ecore.impl.EPackageImpl@4664cd32 (name: bug434102) (nsURI: uri, nsPrefix: prefix)] null
-----------> class org.eclipse.ui.views.properties.PropertySheetPage

AFTER MANUAL SELECTION

selectionChanged org.eclipse.emf.ecore.presentation.EcoreEditor@7308e2d6/null/[org.eclipse.emf.ecore.impl.EPackageImpl@4664cd32 (name: bug434102) (nsURI: uri, nsPrefix: prefix)]/null
partActivated null [org.eclipse.emf.ecore.impl.EPackageImpl@4664cd32 (name: bug434102) (nsURI: uri, nsPrefix: prefix)] null
partActivated org.eclipse.emf.ecore.presentation.EcoreEditor@7308e2d6 [org.eclipse.emf.ecore.impl.EPackageImpl@4664cd32 (name: bug434102) (nsURI: uri, nsPrefix: prefix)] null
-----------> class org.eclipse.emf.ecore.presentation.EcoreEditor$14
selectionChanged org.eclipse.emf.ecore.presentation.EcoreEditor@7308e2d6/org.eclipse.emf.ecore.presentation.EcoreEditor@7308e2d6/[org.eclipse.emf.ecore.impl.EPackageImpl@4664cd32 (name: bug434102) (nsURI: uri, nsPrefix: prefix)]/null

So it seems, that on opening the view on a selected element, the wrong part -> PropertySheet is selected, not aware of how to handle an EPackageImpl selection. on the manual selection, the EcoreEditor is used which knows about it, showing the correct properties.
Comment 1 Marco Descher CLA 2014-11-07 05:26:44 EST

*** This bug has been marked as a duplicate of bug 425525 ***