Community
Participate
Working Groups
After a selection change in the package view the properties view is not updated - sometimes. We got this bug with other tree views in our own eclipse based application too. We can reproduce the bug with the following procedure: preferences: workbench open mode = single click number of opened editors before closing = 1 initial workbench state: java perspective is opened all editors are closed packge view is visible properties view is visible first action: select a java class in the package view result: the editor is opened and the properties view is updated properly second action: select another java class in the same package result: the editor content changes to the newly selected java class and the properties view is updated properly third action: select the first action java class again result: the editor content changes to the newly selected java class and the properties view is still showing the properties of the second action java class
Lynn, since you own the Properties view component, could you look into this. I kinda swamp right now as I'm handling Eduardo's components. If you do trace it down to something wrong with the selection service of the workbench, let me know and I'll try to help you out.
The given scenario also fails in the Resources Perspective when selecting regular text files. So the problem is not specific to the Java Perspective or package viewer. The problem is specific to the single click and reuse editors modes.
Tested this scenario in 2.0.1 and the bug does not exist.
Since this is a regression, please investigate a fix for 2.1.1. When selecting the different items in the Package Explorer, does focus stay in the Package Explorer or does it switch to the editor? If focus stays with the Package Explorer, then either the view is not communicating the selection change to the selection service, or the selection service is not properly communicating it to the Properties view.
problem is that the reset method of AbstractSelectionService is removing the PropertySheet's selection listener and it is never added back. Need to talk to Simon about this.
Released fix into dev and 2.1.1 streams.