-
-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hi,
I have asked in SAP Community if there was a way to easily create event handlers. I'll try to work on a proposal, but maybe you'd be interested or have ideas, so I post the idea here:
Every time I have to define a event handler, I do it completely manually, by typing the following lines, without assistance from Eclipse ADT to propose the available events of the object type I choose:
METHODS on_event FOR EVENT eventname OF objecttype IMPORTING ...
somewhere else, I enter:
SET HANDLER on_event FOR object.
Hopefully, there is one QuickFix to propose the possible parameters of the event, and another one to create the empty method implementation.
But I find it quite cumbersome to have to go to the object type, list its events, copy/paste them, then type the text around.
Is it possible to create one QuickFix to accelerate the typing of the event handlers?
Thank you.
Sandra
NB: the context how I use it is that I defined a dynpro application with view classes (MVC) with one event per user action (i.e. many events), and the controller class handles each event.
NB2: I guess that quick fix would imply to work with two repository objects at the same time, the class containing the event handlers (where to add code) and the object type containing the event definitions. Eventually there should be a dialog to select for which events handlers are to be added.