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

Bug 326851

Summary: [Model Explorer] Model explorer does not capture resource changes while hidden
Product: [Modeling] Papyrus Reporter: Ansgar Radermacher <ansgar.radermacher>
Component: CoreAssignee: Patrick Tessier <Patrick.Tessier>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Patrick.Tessier
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Ansgar Radermacher CLA 2010-10-02 18:18:53 EDT
When the model explorer is invisible (e.g. the project navigator is shown), it does not capture resource changes. This would not be a problem if it refreshes once visible again. This is however not the case.

Reproduce:
1. open a model. Open model explorer, then hide it (e.g. change tab).
2. Now make a change in the model, e.g. rename an element via a diagram.
3. Make the model explorer visible again.
4. It still contains the old name
Comment 1 Ansgar Radermacher CLA 2010-10-04 03:49:42 EDT
The refresh operation in ModelExplorerView.java checks the isVisible attribute, i.e. the refresh is not execute if not visible.

A simple solution is to skip this check (done in current fix), i.e. to refresh even if not visible. A potential alternative is to set an "needsRefresh" check and executes the refresh once the explorer is visible again.
[good, if a multiple refresh operations are executed while invisible. But the graphic operations are not executed anyway while invisible => minor optimization?]
Comment 2 Patrick Tessier CLA 2011-02-09 10:59:20 EST
It seems that this bug is not valid anymore