handle the null case for contentType in adt plugin environment#496
Merged
XiaoxuanLu merged 2 commits intofeature/adt-supportfrom Aug 8, 2025
Merged
handle the null case for contentType in adt plugin environment#496XiaoxuanLu merged 2 commits intofeature/adt-supportfrom
XiaoxuanLu merged 2 commits intofeature/adt-supportfrom
Conversation
shruti0085
reviewed
Aug 8, 2025
| IFile file = ((FileEditorInput) input).getFile(); | ||
| IContentType contentType = Platform.getContentTypeManager().findContentTypeFor(file.getName()); | ||
| contentTypeName = contentType.getName(); | ||
| if (contentType != null) { |
Contributor
There was a problem hiding this comment.
out of curiousity do you know why content type is null for abap files?
Author
There was a problem hiding this comment.
I searched and it said that this commonly happens with files that don't have recognized extensions or aren't registered with Eclipse's content type system. I think we do not register in Eclipse's content type systems. I will check if there is some place that I can add them
shruti0085
approved these changes
Aug 8, 2025
rli
approved these changes
Aug 8, 2025
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix the bug for inline suggestion in adt environment.
Todo: add content type in plugin.xml
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.