Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366089 - [TMF] Interface to provide trace name
Summary: [TMF] Interface to provide trace name
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: LinuxTools (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Francois Chouinard CLA
QA Contact: Francois Chouinard CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 14:08 EST by Patrick Tasse CLA
Modified: 2022-01-13 14:53 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Tasse CLA 2011-12-08 14:08:11 EST
In the default Open Trace handler, a trace is created using the empty constructor, then initTrace() is called providing the trace path. The trace name is set to the final part of the path (ie. the file or resource name).

The added initTrace() method signature allows for providing a trace name which can be different than the resource name taken from the path.
Comment 1 Patrick Tasse CLA 2011-12-08 16:04:03 EST
Pushed to master branch.

commit a51232da8b798840d4066eb63f329dfb39933a59
Comment 2 Patrick Tasse CLA 2012-02-24 14:50:39 EST
Reopening the bug to update the solution.

The default behavior of using the final segment of the trace path for the trace name can produce undesired results when the trace resource is a linked resource with a different name than the local content.

The initTrace() method signatures are all updated to add a mandatory trace name parameter.
Comment 3 Patrick Tasse CLA 2012-02-24 14:56:12 EST
Pushed to master branch.

commit ad73bed2a4a34ea516c206654d7900095d57be9f
Comment 4 Francois Chouinard CLA 2012-03-26 14:00:29 EDT
Delivered in 0.10.0