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

Bug 320815

Summary: Implementing a new DocumentProvider for Rich Editor
Product: z_Archived Reporter: Harshana Eranga Martin <harshana05>
Component: MylynAssignee: Harshana Eranga Martin <harshana05>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 308404    
Attachments:
Description Flags
Added a concrete implementation for AbstractWikitextDocumentProvider
none
mylyn/context/zip
none
DOM model for WikiText
none
DOM model for WikiText
none
DOM model for WikiText none

Description Harshana Eranga Martin CLA 2010-07-24 12:44:22 EDT
Since the new editor utilizes a new DOM model, we need to implement a new DocumentProvider as well. This bug tracks the progress of it.
Comment 1 Harshana Eranga Martin CLA 2010-07-25 15:25:34 EDT
Within the concrete implementation of AbstractWikitextDocumentProvider, we need to implement a mechanism to generate the wiki markups using the DOM model. When ever the editor content is changed, the content in the DOM is changed right now with the current implementation as well. Even ever the document is saved, we need to generate the wiki markups from the DOM model. We can do it in the doSave() method implementation.
Comment 2 Harshana Eranga Martin CLA 2010-07-25 15:29:30 EDT
Created attachment 175185 [details]
Added a concrete implementation for AbstractWikitextDocumentProvider

Since it is recommended to use a concrete implementation of AbstractWikitextDocumentProvider as the DocumentProvider for the concrete implementation of WikitextSourceEditor, I have configured the editor to use this new implementation. 

I need to complete the doSave() method implementation to generate wiki markups from the DOM model here.
Comment 3 Harshana Eranga Martin CLA 2010-07-25 15:30:04 EDT
Created attachment 175186 [details]
mylyn/context/zip
Comment 4 David Green CLA 2010-07-29 10:28:59 EDT
Harshana, your patch does not appear to contain any Java source code.
Comment 5 Harshana Eranga Martin CLA 2010-08-16 12:24:25 EDT
Created attachment 176689 [details]
DOM model for WikiText

This is similar to the children of Segment<?>. Contains only Blocks, Spans and Segment. MarkupPartition concept is not available. Now any Markup document will be divided in to Blocks and created a DOM model.
Comment 6 Harshana Eranga Martin CLA 2010-08-16 12:27:43 EDT
Created attachment 176690 [details]
DOM model for WikiText

This is similar to the children of Segment<?>. Contains only Blocks, Spans and Segment. MarkupPartition concept is not available. Now any Markup document will be divided in to Blocks and created a DOM model.
Comment 7 Harshana Eranga Martin CLA 2010-08-16 12:29:00 EDT
Created attachment 176691 [details]
DOM model for WikiText

This is similar to the children of Segment<?>. Contains only Blocks, Spans and Segment. MarkupPartition concept is not available. Now any Markup document will be divided in to Blocks and created a DOM model.
Comment 8 David Green CLA 2013-08-02 12:42:22 EDT
Closed as part of backlog clean-up.  Please re-open if you'd like to see this revisited, perhaps with a contribution.