Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to enable status line in a tabbed property sheet?
How to enable status line in a tabbed property sheet? [message #499829] Tue, 24 November 2009 09:56
Stephan Eberle is currently offline Stephan EberleFriend
Messages: 40
Registered: July 2009

Sorry for the invalid domain sender id in my previous post - I'm
therefore sending it again, this time with everything correctly


In my application, I'm using a ge for
displaying and modifying the properties of EMF model elements. It has a
single "Advanced" section which extends on and
displays the EMF model element properties in a simple table, very much
in the same way as if I used a conventional

I want to use the status line to output information on the selected
property or error messages when a wrong value is entered for a given
property (e.g. when the property value type is Integer but the user
enters an alphanumerical string). The problem is that this works out of
the box when using a PropertySheetPage but not at all in case of a

I've debugged a little bit and found out the following:

The status line is managed by When using a
PropertySheetPage, the PropertySheetViewer#statusLineManager field is
initialized via a call to #setStatusLineManager() from
PropertySheetPage#makeContributions(). The latter is indirectly called
from PropertySheetPage#setActionBars(). This means when the
PropertySheetPage is put in place and setActionBars() is called, the
status line manager gets initialized correctly and is available for
outputting information and error messages.

However, when using a TabbedPropertySheetPage, neither
PropertySheetPage#setActionBars() nor
PropertySheetPage#makeContributions() gets invoked. Consequently the
PropertySheetViewer#statusLineManager stays uninitialized and any
attempt at sending content to the status line has not effect.

I've tried to work around the problem by adding an ISelectionListener to
my "Advanced" section, in which I invoked
PropertySheetPage#setActionBars() (via the AdvancedPropertySection#page
field). As a result the status line gets alive but the tool bar
contributions in the master workbench part which the properties view is
connected to get duplicated at each selection change... What would help
here is to have a method PropertySheetPage#setStatusLineManager() such
that the status line manager can be initialized independent of the
IMenuManager and IToolBarManager the master workbench part. I could then
implement a line like this in the ISelectionListener in my "Advanced"

Anyhow, I believe that the fact of having no status line manager when
using TabbedPropertySheetPages instead of PropertySheetPage is a general
problem which maybe should be resolved by underlying Eclipse Platform
code but not at application level. This would simplify life for
application writers and make that the behavior becomes more consistent.

What is your opinion about this? Or is there simply something which I've
completely missed and status line on TabbedPropertySheetPages works out
of the box?
Previous Topic:How to enable status line in a tabbed property sheet?
Next Topic:Centralized Exception handling for Eclipse plug-in
Goto Forum:

Current Time: Fri Jul 28 07:14:50 GMT 2017

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

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