Skip to Content

I often hear from developers that with ABAP in Eclipse it is a little bit cumbersome to change the signature of a method while implementing the method body. For sure you can navigate very easily via the outline to the method definition part and add a parameter there and navigate back. But there is also the possibility to edit signature and body at the same time in eclipse.

Here you see a screenshot with two editors displaying the same source positioned in parallel editor windows:

Editor.png

The editor on top displays the signature and the editor below displays the body of the method.

Eclipse allows you to edit the code in both editors in parallel without getting into trouble concerning locking errors.

You can achieve this via the top level menu Window->New Editor. A new editor with the same source is opened and can be positioned in eclipse as you like.

Try it out.

Kind Regards,

Thomas.

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

  1. Patrick Ortner

    Hi Thomas,

    thank you for this tip. But is there any solution for local classes, which are splitted into different includes? I would like to see (not editing) the signature of an method without navigating to the include with the definition.

    Thanks in advance

    Patrick

    (0) 
    1. Michael Schneider

      Hi Patrick,

      Yes, there is a way to show the signature in of an method implementation: If you cursor is within a method implementation you can choose Source > Show Method Information from the editors context menu or use the short cut Alt+F2.

      A popup will be displayed showing the method’s signature.

      BTW: You can also use Source > Show Code Element Information (short-cut F2) to see the declaration of variables, methods, types, … in the source code. This is also really helpful.

      Michael

      (0) 

Leave a Reply