Skip to content

Conversation

@shruti0085
Copy link
Contributor

@shruti0085 shruti0085 commented Aug 12, 2025

Description of changes:
This change addresses a few bugs:

  • With ADT Viewers, the paintlisteners that render the Accept/Reject and generating UI were not getting removed appropriately. This was because the paint listeners are internally wrapped into an ADT specific delegate that needed to be removed instead of the paint listener.
  • The inline chat prompt did not accept multi line text copy pasted into the box. This was because of a character limit validation as well as the prompt only accepting single line inputs. It has now been modified to have no limits and allow multi line inputs

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

composite.setLayout(new GridLayout(1, false));

inputField = new Text(composite, SWT.SEARCH | SWT.BORDER | SWT.SINGLE);
inputField = new Text(composite, SWT.BORDER | SWT.MULTI);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For curiosity, why we want to delete SWT.SEARCH and change to MULTI?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is for addressing the second bug, it was blocking the ability to support multi line text inputs in the inline chat box

for (var listener : listenersAfter) {
if (!listenersBefore.contains(listener)) {
if (isAdtPaintListener(listener)) {
paintListenerRef = listener;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is paintListenerRef != paintListener?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not for adt. Adt wraps the paint listener into a PaintListenerDelagate which is an internal ADT class which then holds the reference of the PaintListener we create

@shruti0085 shruti0085 merged commit 1cff0c2 into feature/adt-support Aug 13, 2025
1 check passed
@shruti0085 shruti0085 deleted the shruti0085/inlineBug branch August 13, 2025 00:11
shruti0085 added a commit that referenced this pull request Aug 13, 2025
Merges feature branch containing improvements for ADT ABAP support into main.
Relevant PRs

* adt support #487
* Support updating remote when ABAP files are edited #495
* handle the null case for contentType in adt plugin environment #496
* Fix: Handle removing paint listeners with ADT viewer and allow multiline text in inline chat #500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants