Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Show MultiStatus collapsed by default
Show MultiStatus collapsed by default [message #685737] Sat, 18 June 2011 15:16 Go to next message
Eclipse UserFriend
In my Eclipse RCP app I am using MultiStatus instances to make a hierarchy of messages during certain activities, which are ultimately added to the standard Eclipse error log (and view). When these are displayed in the error log view I would like them to appear fully collapsed. For example, consider the following status hierarchy:

- 1
- - 1.1
- - 1.2
- - - 1.2.1
- - - 1.2.2
- - 1.3

Current behaviour of the error log is to display 1 opened showing its children (1.1, 1.2, and 1.3). I would like it to simply display 1. Is this possible, and if so how?

Thanks for the help.
Re: Show MultiStatus collapsed by default [message #685760 is a reply to message #685737] Sun, 19 June 2011 09:21 Go to previous message
Eclipse UserFriend
Hmm, I've investigated more and this seems to be hard coded in the LogView. The asyncRefresh(final boolean activate) method always calls the expandToLevel method on its viewer when it's refreshed. I've not yet managed to find a workaround. I'm still hoping someone has one, but I'm no longer holding my breath...

On the up side, renaming the LogView to something other than "Error Log" is actually quite easy, although it does make a dependency on the internal class (!). Add a new view in your "org.eclipse.ui.views" extension point, give it your own name (e.g. "Application Log"), icon, ID etc, but set the class to "org.eclipse.ui.internal.views.log.LogView". Use your new view ID wherever you used "org.eclipse.pde.runtime.LogView". Dirty but effective.
Previous Topic:Strange behavior on setSaveAndRestore(true).
Next Topic:Chart on RCP application
Goto Forum:
  


Current Time: Sat Aug 30 06:37:52 EDT 2025

Powered by FUDForum. Page generated in 0.03102 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top