Bug 30936 - [Key bindings] Missing action def ids for some workbench actions
Summary: [Key bindings] Missing action def ids for some workbench actions
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Chris McLaren CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-05 00:25 EST by Nick Edgar CLA
Modified: 2003-09-12 13:53 EDT (History)
1 user (show)

See Also:


Attachments
Patch to plugin.xml and plugin.properties (8.16 KB, patch)
2003-09-09 15:16 EDT, Douglas Pollock CLA
no flags Details | Diff
Patch to WorkbenchActionBuilder and ActionHandler (7.71 KB, patch)
2003-09-09 15:20 EDT, Douglas Pollock CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2003-02-05 00:25:53 EST
build I20030129

While cleaning up WorkbenchActionBuilder, I noticed that the following actions 
are missing their action definition ids:

import, export, saveAsAction, pinEditorAction, aboutAction, 
openPreferencesAction, quickStartAction,
hideShowEditorAction, savePerspectiveAction, editActionSetAction, 
lockToolBarAction, resetPerspectiveAction, closePerspAction, 
closeAllPerspsAction
Comment 1 Chris McLaren CLA 2003-09-03 14:23:31 EDT
can you take a look through this doug? i'm not sure how many of these have 
been updated to have command ids since this report was filed. i think all of 
these action should have command ids ('action definition ids') to allow key 
bindings.
Comment 2 Douglas Pollock CLA 2003-09-09 11:56:49 EDT
Here is the up-to-date list of actions that appear to be undefined.  Not only
can I not find mention of them in "plugin.xml", but there is no visible setting
of their definition IDs.

closeAllPersps
closePersp
editActionSet
hideShowEditor
lockToolBar
newWizardDropDown
newWizardMenu
openPreferences
resetPerspective
savePerspective

exportResources (setId in constructor)
importResources (setId in constructor)
pinEditor (setId in constructor)
saveAs (setId in constructor)


The following appear, at first glance, to be undefined, but they exist in the
plugin.xml and they programmatically set their actionDefinitionIds in their
constructors.  They are also available in the KeysPreferencePage.

about (setId and setActionDefinitionId in constructor)
newWizard (setActionDefinitionId in constructor)
quickStart (setActionDefinitionId in constructor)
tipsAndTricks (setActionDefinitionId in constructor)
Comment 3 Douglas Pollock CLA 2003-09-09 15:16:46 EDT
Created attachment 6053 [details]
Patch to plugin.xml and plugin.properties

Added command definitions and internationalized text for the missing commands.
Comment 4 Douglas Pollock CLA 2003-09-09 15:20:50 EDT
Created attachment 6054 [details]
Patch to WorkbenchActionBuilder and ActionHandler

WorkbenchActionBuilder has gained several constants defining the new command
IDs.  The action which were missing command IDs now get them defined, and are
all added as global actions.

ActionHandler has been modified so that it updates the "checked" property of
the jface IAction that it holds.  Without this, commands represented by
checkable widgets don't tend to generate the desired effects when triggered
through the key binding architecture.  For example, "Lock the Toolbars" and
"Pin Editor".
Comment 5 Douglas Pollock CLA 2003-09-09 15:43:20 EDT
Tested under UiTestSuite and AllTests (org.eclipse.ui.tests), and everything
passed ( ... except for StructureViewerTest.testClearSelection, which is failing
even without the patch right now).

chris: I'm sending this patch to you as it involves ActionHandler.

Side note: the patch include the removal of two unnecessary casts from
WorkbenchActionBuilder.
Comment 6 Chris McLaren CLA 2003-09-12 13:53:25 EDT
fixed.