Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360112 - [LTTng] Double-clicking a trace attached to an experiment raises an exception
Summary: [LTTng] Double-clicking a trace attached to an experiment raises an exception
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: LinuxTools (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Francois Chouinard CLA
QA Contact: Francois Chouinard CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 11:12 EDT by Daniel U. Thibault CLA
Modified: 2022-01-13 14:53 EST (History)
0 users

See Also:


Attachments
Fix for Bug360112 (2.84 KB, patch)
2011-10-06 15:28 EDT, Francois Chouinard CLA
fchouinard: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel U. Thibault CLA 2011-10-06 11:12:07 EDT
Build Identifier: 20110916-0149 3.7.1 CDT+IC (Indigo Service Release 1 eclipse-linuxtools-indigo-SR1-incubation-linux-gtk-x86_64)

Double-clicking a trace attached to an experiment is expected to fill out the various views of the perspective with the trace's events. The double-click works with traces in the Traces part of the Projects View, but not with those in the Experiments part.  The message is:

Select Trace: 
org.eclipse.linuxtools.lttng.ui.views.project.model.LTTngExperimentFolderNode cannot be cast to 
org.eclipse.linuxtools.lttng.ui.views.project.model.LTTngProjectNode

None of the contextual menu actions trigger this, so the association between the double-click and the contextual menu choice is unknown (the expectation is for the double-click to match the default contextual menu action; in some OSes this is signaled by bolding the appropriate contextual menu entry).

Reproducible: Always

Steps to Reproduce:
1. Launch Eclipse 3.7.1 CDT+IC
2. Open the LTTng perspective
3. Create a project (File:New:Project:LTTng:LTTng Project)
4. Select the "Traces" line in the Projects View
5. Open the traces' contextual menu
6. Select "Import Trace" (you'll need a sample trace)
7. Select the "Experiments" line in the Projects View
8. Open the experiments' contextual menu
9. Select "New Experiment"
10. Type in a name in the odd dialog that pops up (reported as bug 360110)
11. Select your experiment in the Projects View
12. Open your experiment's contextual menu
13. Select "Select Traces" and pick out your previously imported trace
14. Double-click the trace under the experiment in the Projects View
Comment 1 Francois Chouinard CLA 2011-10-06 15:28:26 EDT
Created attachment 204709 [details]
Fix for Bug360112

Fix the getProject() method so it correctly finds the enclosing project when a trace is selected from within an experiment.
Comment 2 Francois Chouinard CLA 2011-10-06 15:30:44 EDT
Patch committed (18ec7fa6269ee06b07e0353465b8e598ac3e75b1)
Comment 3 Francois Chouinard CLA 2011-10-10 18:46:27 EDT
Comment on attachment 204709 [details]
Fix for Bug360112

Patch ready for 0.9
Comment 4 Francois Chouinard CLA 2012-03-26 13:55:58 EDT
Delivered in 0.9.0