Project: Eclipse_Platform_UI
Bug 161025 [WorkbenchParts] SelectionListener possible bug
Reported: 2006-10-16 06:26:51 | Status: verified fixed

I have a problem which may be RCP bug or just my bug. My setup is this: I have a EditorPart with table as selection provider. Then I have I ViewPart which is registered to listen to selection events. The problem I'm having is that my View doesn't get selection change events if I open the view part after I open the editor part. So is this only my problem or it is a RCP bug? I found out that public void addSelectionListener(String partId, ISelectionListener listener); has a bug. When I use this method the ViewPart doesn't get the events when opened after the EditorPart for the first time. As I can see the EditorPart doesn't still have a PagePartSelectionTracker. The second time the ViewPart is opened it works fine.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/ISelectionService.java