Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: Create bookmarks file for experiments #118

Merged

Conversation

PatrickTasse
Copy link
Contributor

The bookmarks file can be used to store and retrieve markers associated with an experiment using platform APIs.

It can later be obtained for an opened experiment with: TmfTraceManager.getInstance().getTraceEditorFile(experiment)

The bookmarks file can be used to store and retrieve markers associated
with an experiment using platform APIs.

It can later be obtained for an opened experiment with:
TmfTraceManager.getInstance().getTraceEditorFile(experiment)

Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Copy link
Contributor

@MatthewKhouzam MatthewKhouzam left a comment

Choose a reason for hiding this comment

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

Looks good to me!

final InputStream source = new ByteArrayInputStream(new byte[0]);
bookmarksFile.create(source, IResource.FORCE | IResource.HIDDEN, new NullProgressMonitor());
}
file.createLink(bookmarksFile.getLocation(), IResource.REPLACE | IResource.HIDDEN, new NullProgressMonitor());
Copy link
Contributor

Choose a reason for hiding this comment

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

IResource.FORCE?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

According to createLink() Javadoc, only the mentioned flags have an effect while other flags are ignored, and FORCE is not mentioned.

Copy link
Contributor

Choose a reason for hiding this comment

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

Should we update the other one then TmfCommonProjectElement.java:394

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's handled in create() but ignored in createLink().

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 still applies.

@PatrickTasse PatrickTasse merged commit 1c6f68b into eclipse-tracecompass-incubator:master Nov 14, 2024
2 checks passed
@PatrickTasse PatrickTasse deleted the bookmark branch November 14, 2024 18:43
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