Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-debug-dev] Looking for a consistent way to show that the contents of a debug view is intentionally empty

Thanks!   It is almost what I want.

Everything works as expected except I can't seem to set the initial state
of the view using showMessage()

Perhaps I am not calling it in the right place to have my view show text
when it first appears.

I can't use "showMessage()" in my createView() method because the message
page hasn't been created yet.

Alan


Darin wrote:

I believe this already is supported. See AbstractDebugView#showMessage(...)
and #showViewer(). The variable view uses this technology to show that
there are no variables available (for instance, when a native stack frame
is selected).

Darin


                                                                           
   boxall@xxxxxxxxxx                                                       
   Sent by:                    To:        platform-debug-dev@xxxxxxxxxxx   
   platform-debug-dev-         cc:                                         
   admin@xxxxxxxxxxx           Subject:        [platform-debug-dev]        
                       Looking for a consistent way to show that the       
                       contents of a debug view is intentionally empty     
   04/02/2002 12:50 PM                                                     
                                                                           
   Please respond to                                                       
   platform-debug-dev                                                      
                                                                           





 Some of the debug views (extends AbstractDebugView) that we are building
 are not valid for all debug targets.

 I would like to show a Label for the contents of the view similar to the
 Java Outline view when the outline is not available.

 But I can't override AbstractDebugView.createPartControl(Composite)
 because
 it is declared as final.

 With more and more views being added could you modify AbstractDebugView to
 allow for views that are not
 available or come up with a consistent way of depicting that that contents
 are not available.

 I like the way the outline view does it because an empty view implies
 either there are no elements to show or there was an error getting them.
 By showing that the view is not available I know that it doesn't apply to
 the current selection.

 Alan Boxall



Back to the top