-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open repo when starting abapGit for package #17
Comments
Well I think thats with the parameter should not be a big deal on ABAP in Eclipse side too (still have to check this). But to sum it up if we can solve the credential issue the rest should not be something which stops us. |
Ṫhere is a userexit for authentication. Imho abapGit should only be opened when the user explicitly triggers via context menu. And then I think it's also ok for users to provide their credentials. |
INCLUDE zabapgit_unit_test. Hi Christian! I added the functionality. Now I send the current package name as parameter, which can be retrieved over CL_ADT_GUI_INTEGRATION_CONTEXT=>read_context( ) ... see sample coding within abapGit below. The version is not yet releases but commited to this github repository. Let me know if the parameter name and the mode of transfer is ok for you. From Eclipse site I think you will get requests with a filled parameter and without or with the value ''. Greetings, Andreas INCLUDE zabapgit_forms. INITIALIZATION. DATA(context) = CL_ADT_GUI_INTEGRATION_CONTEXT=>read_context( ). lcl_password_dialog=>on_screen_init( ). If this proposal works on abapGit side I think I will let Eclipse open for each package a ZABAPGIT transaction. Therefore the user has to login only once for each package (or never when he/she uses the userexit. |
Looks good. Implemented the abapGit part in this branch. Couldn't test as I don't know how to start eclipse with a plugin from source. Any hints? Do I need the PDE eclipse installation? |
Normally it should be quite straightforward to start the plugin in testmode, see the following issue. From this issue take step 1 and afterwards build the project and run it as Eclipse application. |
I think there is a plugin missing which contains the mockito framework |
Ok, deleting the file AbapGitHandlerTest.java seems to work. Btw. it's not in test folder, but in src. |
When I test I get this exception and nothing happens. !ENTRY org.eclipse.ui 4 0 2018-11-30 17:51:24.400 |
Interesting error message. I am pretty sure that the reason is that you had at least one tab open named with ZABAPGIT. This logic will anyway be changed, thus for testing purposes I would ask you to ensure that ideally no tab is open or at least no tab with the label ZABAPGIT, when pressing the abapGit context menu in the project explorer (with an package entry selected in the project explorer of course) |
I'll submit a PR for abapGit changes during the weekend. |
perfect, I will finalize the Eclipse part and release it also the next week |
implemented and new version 0.5.4.4 released, but not yet testet with the latest abapGit version |
Tested successfully. |
Currently when we call
abapGit
in the context menu of a package abapGit is opened with home screen and no repo is opened.It would be nice if we could open the repo corresponding to the selected package automatically. Technically we can solve this with a GET/SET parameter (which doesn't exist yet in abapGit but would be easy to implement). Is it possible to supply GET/SET parameters from ADT when calling a transaction? If yes we can do this.
The text was updated successfully, but these errors were encountered: