Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 166456 - Provide API to fetch XML source line numbers by giving a design element to the Module Handle
Summary: Provide API to fetch XML source line numbers by giving a design element to th...
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.2.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 2.2.0 M3   Edit
Assignee: Jiaying Liu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 159507
  Show dependency tree
 
Reported: 2006-12-01 03:57 EST by Hongchang Lin CLA
Modified: 2006-12-05 02:59 EST (History)
0 users

See Also:


Attachments
Highlight the XML source of the selected design element (91.00 KB, image/jpeg)
2006-12-01 04:00 EST, Hongchang Lin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hongchang Lin CLA 2006-12-01 03:57:06 EST
In the improved XML editor(can be refered to bug 159507), we plan to implement a feature: after selecting a design element in designer outline page, locates the selected element in report XML source and highlight the lines that represent it.
Please also see attachment illustrates it.

Probably we can assign the selected design element, which is obtained from selection Report request, to the current ModuleHandle, and the lines info.(including start offset and total lines, or start and end line NO.) are return to GUI to highlight them on XML editor.
Thanks.
Comment 1 Hongchang Lin CLA 2006-12-01 04:00:36 EST
Created attachment 54871 [details]
Highlight the XML source of the selected design element
Comment 2 Jiaying Liu CLA 2006-12-05 02:59:11 EST
Added getLineNo( long id ) on ModuleHandle. The return value is of int type, which indicating the start line number of the element in xml source.