Bug 485021 - Properties view display properties of old selection
Summary: Properties view display properties of old selection
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.6   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.6 M5   Edit
Assignee: Andrey Loskutov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 483459 485167
  Show dependency tree
 
Reported: 2015-12-30 11:21 EST by Esteban DUGUEPEROUX CLA
Modified: 2018-01-22 09:00 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Esteban DUGUEPEROUX CLA 2015-12-30 11:21:28 EST
Scenario to reproduce with a Modeling bundle :

1. Create a Project with a .ecore resource opened
2. Have Properties view and Problems view opened with this last in front
3. With the opened "Sample Ecore Model Editor" select the first tree item, i.e. the name of the resource, the Problems view is empty and it's ok
4. Select the EPackage and switch to the Properties view => KO the Properties view display properties for the old selection while with Mars the properties of the new selection are displayed.
Comment 1 Kalyan Prasad Tatavarthi CLA 2016-01-04 01:47:10 EST
This bug occurs as a result of the fix for the bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=479855
Comment 2 Esteban DUGUEPEROUX CLA 2016-01-04 03:03:59 EST
Hi Kalyan Prasad Tatavarthi, Thanks for the feedback.
Comment 3 Andrey Loskutov CLA 2016-01-04 10:35:47 EST
See also related bug 485154 where just switching back and fort from Properties view to Problems view will invalidate Properties view content (not related to the fix for the bug 479855). I have patches for both issues.
Comment 4 Eclipse Genie CLA 2016-01-04 10:47:31 EST
New Gerrit change created: https://git.eclipse.org/r/63473
Comment 6 Andrey Loskutov CLA 2016-01-05 17:51:20 EST
@Esteban: I've merged the change for Properties view, along with another fix for bug 485154 and tests for it. 

Please validate if this works as expected. If something is still wrong, please either reopen this bug or create a new one.
Comment 7 Esteban DUGUEPEROUX CLA 2016-01-11 04:29:33 EST
Hi Andrey,

I validate your fix,

Thanks.
Comment 8 Edit Mihancea CLA 2018-01-22 09:00:19 EST
The selection in the properties view is still the old one if the properties and outline views are stacked and the selection is changed in the outline. See bug 530131.