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

Bug 413456

Summary: [sidebar] Cannot use an outline as the default sidebar view
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: svihovec
Version: 3.0   
Target Milestone: 6.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-07-22 10:36:33 EDT
The sidebar in Orion 3.0 shows a tree of files by default.

It is supposed to easily allow changing the code to show an outline instead. However, setting the 'defaultViewMode' in sidebar.js to an outliner's view mode id (that is, "outline." + {outline provider id}) does not work -- you just get an empty outline.

This is because the list of outline providers' view modes is not known until the file's content type has been loaded, and any message bundles required by the providers have also been loaded. 

The current sidebar API expects a default view mode to be set synchronously during construction. If this doesn't happen, and you later add a view mode (that is supposed to be the default one) asynchronously, the sidebar doesn't care.
Comment 1 John Arthorne CLA 2015-05-05 16:21:20 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html