Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362563

Summary: @Focus setFocus() called twice
Product: [Eclipse Project] Platform Reporter: Karl Weber <karl.weber99>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: emoffatt, remy.suen
Version: 4.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: stalebug

Description Karl Weber CLA 2011-11-01 08:33:14 EDT
Build Identifier: M20110912-1510

Under certain conditions setFocus is called twice.

When I have two MParts in an MPartStack and the size of the MPartStack is large enough so that one can see both CTabItems displayed, then setFocus() of an MPart is called twice when I change the selection.

When the size of the MPartStack is so small that only one CTabItem is displayed together with the small button displaying ">>" and the number of "hidden" CTabItems as index, then when I change the selection through the ">>" button, setFocus is called only once.

When setFocus is called twice, this happens


    * Through StackRenderer.ActivateJob.run()
    * Through Composite.setFocus of the Composite created in ContributedPartRenderer.createWidget. It is called through the MouseListener added to the CTabFolder in hookControllerLogic.

When setFocus is called only once, it happens through StackRenderer.ActivateJob.run().

Reproducible: Always

Steps to Reproduce:
Should be obvious from the description of the bug.
Comment 1 Lars Vogel CLA 2019-11-14 03:11:09 EST
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.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.