Le 18/06/2013 15:34, Stéphane Ducasse a écrit :
is
buildShortcut:
*
*
*standard?*
No. Lack of infrastructure for that :) Spec has some of the relevant
bits and could automatize this a bit.
KMDispatcher still doesn't work totally as I would like.
*is it invoked automatically?*
Yes. GUI model, when selected object changes, call an updateKeymap
method which calls a
https://github.com/ThierryGoubier/AltBrowser/blob/master/Alt-Browser.package/AltAbstractNode.class/instance/buildTextShortcutsOn.with..st
on the selected object in the GUI.
Thierry
*
*Stef*
*
*
On Jun 18, 2013, at 1:48 PM, Goubier Thierry <[email protected]
<mailto:[email protected]>> wrote:
Hi Stéphane,
look into the AltBrowser code. You'll find commands that are both
shortcuts and menu items (subclasses of AltCommand).
https://github.com/ThierryGoubier/AltBrowser/blob/master/Alt-Browser.package/AltCommand.class/instance/addItemToMenu..st
https://github.com/ThierryGoubier/AltBrowser/blob/master/Alt-Browser.package/AltCommand.class/instance/buildShortcut..st
And it's more or less lifted from the OmniBrowser code, by the way.
(Kind of convenient to link to st code from github)
Thierry
Le 18/06/2013 13:34, Stéphane Ducasse a écrit :
Hi ben
I want to define some menu for my logging Tool UI. And I was
wondering how
- define menu
- avoid duplication with shortcut
I looked at the EyeInspector but it is not clear to me. Do you have a
better example I could read?
Stef
--
Thierry Goubier
CEA list
Laboratoire des Fondations des Systèmes Temps Réel Embarqués
91191 Gif sur Yvette Cedex
France
Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
--
Thierry Goubier
CEA list
Laboratoire des Fondations des Systèmes Temps Réel Embarqués
91191 Gif sur Yvette Cedex
France
Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95