Bug 84636

Summary: [MPE] MultiPageEditorPart does not remove property listener on nested editor
Product: [Eclipse Project] Platform Reporter: Nick Edgar <n.a.edgar>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P5 Keywords: helpwanted
Version: 3.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Nick Edgar CLA 2005-02-07 17:32:58 EST
build I20050202

In MultiPageEditorPart.addPage(IEditorPart, IEditorInput), it adds a property
listener:

        editor.addPropertyListener(new IPropertyListener() {
            public void propertyChanged(Object source, int propertyId) {
                MultiPageEditorPart.this.handlePropertyChange(propertyId);
            }
        });

This listener is never removed.  This shouldn't actually be a problem, as
typically the nested editor is disposed whenever the outer editor is disposed,
or when the nested editor is removed, and WorkbenchPart.dispose() clears the
property listener list.

But it would be better to manage the property listener in MultiPageEditorSite,
and remove it in the site's dispose() method.
Comment 1 Eclipse Webmaster CLA 2019-09-06 15:30:15 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.