Skip to content

Commit

Permalink
Fix collecting marker content generators from extensions eclipse-plat…
Browse files Browse the repository at this point in the history
  • Loading branch information
travkin79 committed Aug 19, 2024
1 parent db4e3ca commit 4cca5c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public boolean allTypesSelected(Collection<MarkerType> selectedTypes) {
* @return {@link MarkerField}[]
*/
public MarkerField[] getAllFields() {
List<MarkerField> allFieldsList = Arrays.asList(allFields);
List<MarkerField> allFieldsList = new ArrayList<>(Arrays.asList(allFields));

Iterator<IConfigurationElement> extensions = generatorExtensions.iterator();
while (extensions.hasNext()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ public void markerContentGeneratorExtensionLoaded() throws Exception {
MarkerContentGenerator generator = getMarkerContentGenerator(view);
ContentGeneratorDescriptor descriptor = MarkerSupportRegistry.getInstance()
.getContentGenDescriptor(generator.getId());
assertNotNull(descriptor);

MarkerField[] allFields = descriptor.getAllFields();

boolean foundAdditionalFieldRegisteredViaExtension = false;
Expand Down

0 comments on commit 4cca5c0

Please sign in to comment.