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

Bug 407317

Summary: [sidebar] Sidebar in bad state after switching file type
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 3.0 M2   
Hardware: PC   
OS: Windows 7   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=423633
Whiteboard:
Attachments:
Description Flags
screenshot none

Description Mark Macdonald CLA 2013-05-06 12:41:51 EDT
1. Open a JS file
2. Show the JS outline: sidebar > view > outline
3. Use the Find Files dialog (Ctrl+Shift+F), or manually edit the location fragment, to point the editor to a .css file without reloading the page.
4. Now you're in an inconsistent state.

-View dropdown correctly shows [Navigator | CSS Outline]
-Sidebar content area incorrectly shows the old (JS) outline
-Sidebar toolbar shows Navigator buttons, although we don't see the navigation tree in the sidebar.
Comment 1 Mark Macdonald CLA 2013-05-06 12:50:18 EDT
Created attachment 230527 [details]
screenshot

In fact, I think the sidebar may be invoking the old outline provider and passing it the new filetype (which it can't handle). If you reverse the file types in the step to reproduce, you can see what seems to be the CSS outliner being invoked on a JavaScript buffer. That's not good.
Comment 3 Mark Macdonald CLA 2013-05-07 10:42:34 EDT
^