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

Bug 319428

Summary: [TMF] Generalization of Project View
Product: z_Archived Reporter: Patrick Tasse <patrick.tasse>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Proposed patch in org.eclipse.linuxtools.tmf package
fchouinard: iplog+
Proposed patch in org.eclipse.linuxtools.tmf.ui package overholt: iplog+

Description Patrick Tasse CLA 2010-07-09 16:22:15 EDT
Build Identifier: 

Submitting a patch to generalize the Project View from LTTng to TMF, with a few improvements and bug fixes. A parser provider extension point is created. The events table is factored out of the events view to be used in any view, editor or control. An events editor is created to show the events table for a specific trace. Drag and drop support of traces is added.

Detailed changes:

Project view:

- Trace resource can be a file or a folder
- Deleting a trace will delete it from all experiments where it appears
- Creating a new project sets it as the active project
- Open trace implemented; finds the appropriate parser and opens the events table in an editor
- Refresh command now detects file system changes
- Select parser for a trace; opens submenu with available registered parsers, updates trace editor if opened, updates the current experiment if it contains the trace
- Different icon used for the active project and for trace with unknown parser in project view tree
- Remove project node children when the project is closed by another view (e.g. package explorer)
- Opened project that do not have the TMF project nature are filtered out
- Trace node under an experiment can return its project correctly
- Drag & Drop support of trace from file system or any view with resources; trace is added to active project as a link
- Double-clicking on a project node sets it as the active project
- Double-clicking on a trace node opens it in an editor
- Selecting an experiment sets it as current experiment and also opens every trace it contains in its own editor

Events table widget:

- Extracted from Events view; can be included in any view or editor

Events view:

- Made available to open by user; shows the events from the current experiment

Events editor:

- Shows the events from a single trace
- Can be open with File > Open File, Open with, or drag-and-drop to editor region
- Creates a link in the active project's trace folder if the input is not already a project resource
- Updates itself when the trace parser is changed
- Brings itself to front when the trace it contains is selected in another view

MultiPage editor:

- Created multi page editor which registers to the TMF signal manager

Parser Provider Manager:

- Extension point defined for plugins to register their own parser provider
- Gathers list of registered parser providers at initialization
- Stores the parser as a persistent property of the trace resource
- Returns a trace using the appropriate parser for the specified resource
- Content type of the resource can be used to find parser when it is undefined
- Parser provider can define its own events editor for a specific parser
- Parser provider can define its own events table for a specific parser



Reproducible: Always
Comment 1 Patrick Tasse CLA 2010-07-09 16:23:42 EDT
Created attachment 173913 [details]
Proposed patch in org.eclipse.linuxtools.tmf package

Legal Message: I, Patrick Tasse, declare that I developed attached code from scratch, without referencing any 3rd party materials except material licensed under the EPL. I am authorized by my employer to make this contribution under the EPL.
Comment 2 Patrick Tasse CLA 2010-07-09 16:24:39 EDT
Created attachment 173914 [details]
Proposed patch in org.eclipse.linuxtools.tmf.ui package

Legal Message: I, Patrick Tasse, declare that I developed attached code from scratch, without referencing any 3rd party materials except material licensed under the EPL. I am authorized by my employer to make this contribution under the EPL.
Comment 3 Francois Chouinard CLA 2010-07-12 13:50:26 EDT
Comment on attachment 173913 [details]
Proposed patch in org.eclipse.linuxtools.tmf package

Patch committed with minor changes.
Comment 4 Francois Chouinard CLA 2010-07-12 15:51:21 EDT
Done.
Comment 5 Francois Chouinard CLA 2011-07-22 14:45:28 EDT
Delivered with 0.7