Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326851 - [Model Explorer] Model explorer does not capture resource changes while hidden
Summary: [Model Explorer] Model explorer does not capture resource changes while hidden
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Patrick Tessier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-02 18:18 EDT by Ansgar Radermacher CLA
Modified: 2011-02-09 10:59 EST (History)
1 user (show)

See Also:


Attachments

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