Skip to Content

abapGit click object opens it in SAP GUI instead Eclipse ADT

If I run abapGit, and click one object, I get an unexpected Windows popup:

(adt://NPL/sap/bc/adt/oo/classes/zcl_abapgit_2fa_auth_base - This file does not have an app associated with it for performing this action. Please install an app or, if one is already installed, create an association in the Default Apps Settings page).

Clicking the OK button opens the class in a SAP GUI window instead of directly inside Eclipse:

What I expect, is that it should open in Eclipse, the way it works if I open it via Eclipse > Navigate > Open ADT Link:

Clicking the object via abapGit used to open the object in Eclipse in the past. I don't know what happened (maybe after Eclipse upgrade, ADT upgrade, Windows 10 upgrade, ...; I would think that the culprit is more a Windows 10 upgrade, but I don't know).

The "faulty" code is in method JUMP_ADT of class ZCL_ABAPGIT_OBJECTS_SUPER:

cl_gui_frontend_services=>execute( EXPORTING  document = lv_adt_link
                                           EXCEPTIONS OTHERS   = 1 )

where lv_adt_link contains:

adt://NPL/sap/bc/adt/oo/classes/zcl_abapgit_2fa_auth_base

The method EXECUTE triggers the exception FILE_EXTENSION_UNKNOWN after the popup is displayed.

Because there is an exception, abapGit then opens the object in a classic manner, via SAP GUI (CALL FUNCTION 'RS_TOOL_ACCESS' EXPORTING operation = 'SHOW' object_name = ms_item-obj_name object_type = 'CLAS' in_new_window = abap_true.)

By the way, I noticed that the protocol "adt" exists in the Windows registry (Computer\HKEY_CLASSES_ROOT\adt), but doesn't contain anything (I would expect a minimum of one CLSID or shell key linking to Eclipse/ADT).

I tried upgrading Eclipse, uninstalling and re-installing ADT. I didn't try to reinstall Eclipse from scratch.

So, the question is, how to make the object clicked in abapGit opened inside Eclipse, not in SAP GUI?

Context: Windows 10, Eclipse 2018-12, latest ADT 2018-12, and Windows 10, Eclipse Photon, latest ADT photon.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    6 days ago

    Dear Sandra,

    you have to activate the handling for ADT URL in the preferences of the ABAP Development Tools.

    To do so open "Preferences > ABAP Development". There is a section at the top of the page called "ADT Link Handling".

    Btw: Currently this feature does only work on windows. With the next version of ABAP Development Tools this will also work on macOS. Stay tuned.

    This manual step though still remains also in the next version.

    Add comment
    10|10000 characters needed characters exceeded

  • 6 days ago

    Hi,

    If this is still an issue, feel free to open an issue at https://github.com/larshp/abapGit/issues

    Add comment
    10|10000 characters needed characters exceeded

    • Matthias answer solved the issue (it's an option in Eclipse > Preferences, I don't know how I did not see it). Your answer resurrected the question and lead to the solution, so lots of thanks!