Bug 378554 - [debug view] Debug view toolbar show/hide doesn't update contributed items
Summary: [debug view] Debug view toolbar show/hide doesn't update contributed items
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.8   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: polish
Depends on:
Blocks: 378892 390869
  Show dependency tree
 
Reported: 2012-05-04 16:54 EDT by Pawel Piech CLA
Modified: 2019-11-27 07:03 EST (History)
3 users (show)

See Also:


Attachments
Patch with fix. (5.09 KB, patch)
2012-05-04 17:30 EDT, Pawel Piech CLA
no flags Details | Diff
Updted patch with comments. (6.62 KB, patch)
2012-05-04 18:15 EDT, Pawel Piech CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Piech CLA 2012-05-04 16:54:48 EDT
We added an option to show the standard debugging actions in the top level toolbar, and hide them in the Debug view (bug 258767).

However other debuggers that contribute actions to the debug view toolbar also would like to control their visibility.  We are currently using the org.eclipse.debug.ui.debugViewToolbarVisible system property to indicate toolbar visibility.  However, there is no listener API available for system properties so actions that use it do not update their visibility correctly.  

In addition to the system property, I want to add a property tester which will check the system property.  Clients can use the property tester and be updated when the property is changed by the launch view's toggle action.  I.e. toggle action will call IEvaluationService.requestEvaluation() after toggling toolbar visibility.
Comment 1 Pawel Piech CLA 2012-05-04 17:30:16 EDT
Created attachment 215109 [details]
Patch with fix.
Comment 2 Pawel Piech CLA 2012-05-04 18:15:25 EDT
Created attachment 215113 [details]
Updted patch with comments.
Comment 3 Pawel Piech CLA 2012-05-04 18:18:13 EDT
I'd like to target this for 3.8 still, since the reverse stepping toolbar is quite broken in CDT without it.  It is technically an API change though, so I think we'll also need PMC approval.

Mike, could you have a quick look?
Comment 4 Dani Megert CLA 2012-05-08 07:00:33 EDT
(In reply to comment #0)
> However other debuggers that contribute actions to the debug view toolbar 
> also would like to control their visibility. 

What is the impact for them if we don't fix this bug? Will their actions appear in the Debug view's local toolbar even though it's hidden (which is the case out of the box)?

I'm not sure a new property tester is the right API here.
Comment 5 Pawel Piech CLA 2012-05-08 09:15:05 EDT
(In reply to comment #4)
> What is the impact for them if we don't fix this bug? Will their actions appear
> in the Debug view's local toolbar even though it's hidden (which is the case
> out of the box)?
The bug appears only when toggling toolbar on/off, where the toggle doesn't take effect until some other user action (e.g. selection change) forces the actions' visibility to be udpated.  Marc indicated in bug 372032 comment #14 that it's not a severe bug, so I'm OK to post-pone this.  

> I'm not sure a new property tester is the right API here.
Me neither.  Come to think of it, it would be better if the call to IEvaluationService.requestEvaluation() could also be used to evaluate system properties.
Comment 6 Lars Vogel CLA 2019-11-27 07:03:58 EST
This bug hasn't had any activity in quite some time. Maybe the problem got
resolved, was a duplicate of something else, or became less pressing for some
reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it.
The information can be, for example, that the problem still occurs, that you
still want the feature, that more information is needed, or that the bug is
(for whatever reason) no longer relevant.

If the bug is still relevant, please remove the stalebug whiteboard tag.