Bug 181617 - In Variables view, Enable/Disable actions not updating enablement when run
Summary: In Variables view, Enable/Disable actions not updating enablement when run
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-09 11:59 EDT by Peter Nehrer CLA
Modified: 2020-09-04 15:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nehrer CLA 2007-04-09 11:59:55 EDT
In Variables view's context menu, the Enable/Disable actions do not properly update their enablement after running. E.g., for any given variable selection, selecting "Enable" does not disable the Enable action and enable the Disable action, and vice-versa. The actions are properly updated only when selection is explicitly changed.

It appears that EnableVariablesActionDelegate attempts to set the current selection into the view, which does not fire a selection changed event in an AsynchronousViewer. Thus the action (and its logical opposite) are not updated.

Ideally, the Enable action would update both itself and the corresponding Disable action after running instead of forcing a selection changed event. However, since there is no good way to associate two related instances of contributed action delegates at runtime, perhaps this functionality should be refactored to use a single toggle action rather than a pair of simple actions with alternating enablement.