Le 14/05/2014 20:31, Hilaire Fernandes a écrit :
Could be yes. Needed action is editing&recompiling code and creating new
method in a given class as shown in the screenshot from DrGeo 13.10:
even this one is a temporary solution because still too much is exposed
to the user as the class/instance button,...

Have you considered controlling the user experience directly to let him focus only on the method to create or edit?

Creating a text editor window in coding mode with the ability to edit or create a method in a preset class is not much work; I'd say around 20 lines with the default menu and an accept which compiles.

If you want complete control on the menu (i.e. a bit more polish than the default and control over which shortcuts are active), I can extract what I've done for mine: it's a minimal command objects API to couple menus and shortcuts inspired by the one of the OmniBrowser (of Pharo 1.4). In there, a typical command with its shortcut/label/icon/activation status is about five lines long.

The example I showed you is a full browser, but in which all actions, refactorings and searches will be limited to the class. I still think it is a bit too much for you use case.

Thierry
--
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

Reply via email to