Skip to content

Conversation

@bhufmann
Copy link
Contributor

@bhufmann bhufmann commented Apr 8, 2025

What it does

These methods are migrated from the trace server's DataProviderService.

[Added] data provider/descriptor list methods to XmlDataProviderManager

How to test

Replace methods in trace-server's DataProviderService with this new API and verify that XML analysis DPs are available as before.

Follow-ups

Review checklist

  • As an author, I have thoroughly tested my changes and carefully followed the instructions in this template

* the trace, else null
*/
@SuppressWarnings("unchecked")
public <@Nullable P extends ITmfTreeDataProvider<? extends ITmfTreeDataModel>> P getXmlProvider(ITmfTrace trace, String id, Set<OutputType> types) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this needs to be:
public @nullable <P extends ...

(that's Nullable with a capital N, thank you github and shout-out to @nullable)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll update that.

PatrickTasse
PatrickTasse previously approved these changes Apr 9, 2025
* the trace, else null
*/
@SuppressWarnings("unchecked")
@Nullable public <P extends ITmfTreeDataProvider<? extends ITmfTreeDataModel>> P getXmlProvider(ITmfTrace trace, String id, Set<OutputType> types) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider changing to public @Nullable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@bhufmann bhufmann force-pushed the xml-dp-manager branch 2 times, most recently from 4431667 to 12fd2cd Compare April 10, 2025 12:35
These methods are migrated from the trace server's DataProviderService.

[Added] data provider/descriptor list methods to XmlDataProviderManager

Signed-off-by: Bernd Hufmann <[email protected]>
@bhufmann bhufmann merged commit 263f711 into eclipse-tracecompass:master Apr 11, 2025
4 checks passed
@bhufmann bhufmann deleted the xml-dp-manager branch April 11, 2025 15:12
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.

2 participants