You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Clipboard clean-up in the Eclipse plugin #155
Hi Jörg-Michael, cleaning up code stored in the clipboard is only possible using the stand-alone application right now. Would it be possible to include this feature in the Eclipse plugin? In our current SAP system release, there are still some development objects (e.g. enhancements) where the ADT editor can't be used yet. I'd like to be able to copy code from SAP GUI to my clipboard, use the ABAP Cleaner, then paste it back into SAP GUI.
This use case doesn't really happen that often to warrant keeping the stand-alone application updated in parallel, so I'd like to avoid that. 😉
that's a nice point – and now that we have this third option …
… which is sure to not modify the code in ADT (whatever happens inside the ABAP cleaner UI), why not allow the "From Clipboard" and "From File" menu items from the stand-alone version here, too!
I'd only think that "Watch and Modify Clipboard" would be taking things too far. And "Clean Up With Interactive ABAP Cleaner…" should not show any of these 4 menu items, because here, the code in ADT is locked and replaced by the cleanup result.
Wow, your speed is impressive! Now let me reward that with an additional feature request... 😇 Would it be possible to make the function available if the active tab is showing the SAP GUI?
The ABAP Cleaner can only be accessed using the menu option "Source code":
This section isn't available when the active tab shows the SAP GUI:
and here's version 1.8.0, allowing to paste any ABAP code into the read-only preview! :-) As with the stand-alone version, all code blocks such as IF ... ENDIF must be complete in the pasted code.
I will let you know when I hear news about SAP GUI inside ADT, but closing this for now.
Wow, your speed is impressive! Now let me reward that with an additional feature request... 😇
Would it be possible to make the function available if the active tab is showing the SAP GUI?
The colleague I asked has confirmed that this is not possible, because ADT has no information on what is shown, selected etc. in the embedded GUI. Therefore, no "Source Code" menu is shown, and there is no way of running ABAP cleaner on the code inside the embedded GUI.
But then, who would want to edit ABAP code in SE80 when they have ADT! :-)
Menu "Source Code" works, of course, if SAP GUI is opened with this option…
… and code is then indeed displayed inside of an ADT text editor.
But then, who would want to edit ABAP code in SE80 when they have ADT! :-)
Just to make it clear, this would be required when working in objects in which ADT can't be used yet. Because the "Source Code" menu isn't displayed, you need to navigate to another ADT tab, access the ABAP Cleaner there, and then navigate back to the SAP GUI tab. A little bit cumbersome, but it works 😉
Activity
jmgrassau commentedon Oct 18, 2023
Hi ConjuringCoffee,
that's a nice point – and now that we have this third option …
… which is sure to not modify the code in ADT (whatever happens inside the ABAP cleaner UI), why not allow the "From Clipboard" and "From File" menu items from the stand-alone version here, too!
I'd only think that "Watch and Modify Clipboard" would be taking things too far. And "Clean Up With Interactive ABAP Cleaner…" should not show any of these 4 menu items, because here, the code in ADT is locked and replaced by the cleanup result.
Kind regards,
Jörg-Michael
jmgrassau commentedon Oct 18, 2023
Hi ConjuringCoffee,
done :-) that was an easy win!
Kind regards,
Jörg-Michael
ConjuringCoffee commentedon Oct 18, 2023
Wow, your speed is impressive! Now let me reward that with an additional feature request... 😇 Would it be possible to make the function available if the active tab is showing the SAP GUI?
The ABAP Cleaner can only be accessed using the menu option "Source code":

This section isn't available when the active tab shows the SAP GUI:

jmgrassau commentedon Oct 18, 2023
Hi ConjuringCoffee,
I forwarded this question to a colleague who'd know better about this, but my feeling is that this won't be possible.
Kind regards,
Jörg-Michael
allow menu 'Code / From Clipboard' etc. in read-only preview (SAP#155)
allow menu 'Code / From Clipboard' etc. in read-only preview (#155)
jmgrassau commentedon Oct 23, 2023
Hi ConjuringCoffee,
and here's version 1.8.0, allowing to paste any ABAP code into the read-only preview! :-) As with the stand-alone version, all code blocks such as
IF ... ENDIFmust be complete in the pasted code.I will let you know when I hear news about SAP GUI inside ADT, but closing this for now.
Kind regards,
Jörg-Michael
jmgrassau commentedon Oct 23, 2023
Hi ConjuringCoffee,
thanks for this nice reward ;-)
The colleague I asked has confirmed that this is not possible, because ADT has no information on what is shown, selected etc. in the embedded GUI. Therefore, no "Source Code" menu is shown, and there is no way of running ABAP cleaner on the code inside the embedded GUI.
But then, who would want to edit ABAP code in SE80 when they have ADT! :-)
Menu "Source Code" works, of course, if SAP GUI is opened with this option…

… and code is then indeed displayed inside of an ADT text editor.
Kind regards,
Jörg-Michael
ConjuringCoffee commentedon Nov 2, 2023
Thanks for the new clipboard feature!
Just to make it clear, this would be required when working in objects in which ADT can't be used yet. Because the "Source Code" menu isn't displayed, you need to navigate to another ADT tab, access the ABAP Cleaner there, and then navigate back to the SAP GUI tab. A little bit cumbersome, but it works 😉