Project: Eclipse_Platform_UI
Bug 124673 [Commands] handlers: TextActionHandler's text actions do not work as expected
Reported: 2006-01-20 11:41:07 | Status: verified fixed

In the current implementation, the text actions used to redirect clipboard operations to the active text control's methods do not cause action enablement updates. For example, choosing Select All from the Edit menu (when there was no previous selection) does not enable cut, copy, and delete. The fix could be to call updateActionsEnableState() in each action's runWithEvent(Event) after performing the text operation. Another related problem is that the DeleteActionHandler does not actually delete the selected text, only clears the selection (Text.clearSelection() does nothing to the selected text itself). The fix could be to remove the selected portion of the string, then set the result back to the control.

Files changed in fix:
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/TextActionHandler.java