Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366089

Summary: [TMF] Interface to provide trace name
Product: z_Archived Reporter: Patrick Tasse <patrick.tasse>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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