Bug 469848 - Job to refresh icon of ModelExporer view should be "synchronized" with IPartListener2
Summary: Job to refresh icon of ModelExporer view should be "synchronized" with IPartL...
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2015-06-10 10:31 EDT by Laurent Redor CLA
Modified: 2015-06-12 10:05 EDT (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 Laurent Redor CLA 2015-06-10 10:31:10 EDT
Since the bug 467115, the job in charge of refreshing the ModelExporer view is now launched only when this view is opened. However, if the view is opened in 2 perspectives, when the view is closed in the current perspective, the job is called even if the view is not longer visible in the current perspective.
The dispose() method, used to remove the listener that launches the job, is called only on the last close.

IPartListener2 should be used instead (including partHidden(IWorkbenchPartReference) and
partVisible(IWorkbenchPartReference)).