-
Notifications
You must be signed in to change notification settings - Fork 14
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
server: Create bookmarks file for experiments #118
Conversation
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>
There was a problem hiding this 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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IResource.FORCE?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 still applies.
1c6f68b
into
eclipse-tracecompass-incubator:master
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)