Fix Tab navigation in profiler editor tabs Make the root panel of UnifiedProfilerFileEditor a focus cycle root with a LayoutFocusTraversalPolicy, so Tab and Shift+Tab move between the profiler's panels (e.g. a Heap Dump's class list, instance list and fields), matching the Profiler tool window. Previously, for offline captures, the nearest focus cycle root was the platform's editor composite panel, whose policy resolves every Tab to the editor's preferred focused component: the root JPanel. Tab thus moved focus onto that panel, which shows no focus indicator, and kept it there. Live tasks could hit the same trap whenever focus landed on the root panel. - Install the policy for offline sessions and live tasks only, leaving the PerfettoFileEditor delegate path unchanged. - Return the first focusable descendant as the preferred focused component, falling back to the root panel while content loads. Bug: 570986380 Test: Manually verified Change-Id: I9581fbe02936f46221090d30b5e55376387fc098
This is the source code of the Android plugin for IntelliJ platform, which is also the main part of Android Studio.
See the links below for implementation details and make sure to read IntelliJ Platform SDK docs first.