On 01/16/2017 05:04 PM, Fabio Zadrozny
wrote:
This one uses a keyboard shortcut also. The shortcut changes text,
for sure, but the request of the user is more to have the
combination of text edit AND keyboard shortcut in a macro, it's not
only text editor. There is no guarantee that the shortcuts affects
text only and many commands/shortcuts do more than editing text in
Eclipse IDE.
I have the impression the vast majority of them want also to invoke
a command or a shortcut in combination with plain text edition.
Ability to record shortcut+text editions seems to be a must-have for
successful macro record/playback. If you want a consistent recorder,
you'll probably have to put it at the SWT layer to make sure you can
properly handle text edits and shortcuts and menus...
My experience with SWTBot recorder is that it's really worth hitting
the lowest level possible (SWT) to record events and actions.If the
recorder hits a level too high right now and misses to handle
shortcuts, menus... later, this can invalidate the whole
implementation and require a full rewrite on a lower level.
The playback part can easily be changed and replaced.
HTH
|