Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320815 - Implementing a new DocumentProvider for Rich Editor
Summary: Implementing a new DocumentProvider for Rich Editor
Status: RESOLVED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Harshana Eranga Martin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 308404
  Show dependency tree
 
Reported: 2010-07-24 12:44 EDT by Harshana Eranga Martin CLA
Modified: 2013-08-02 12:42 EDT (History)
0 users

See Also:


Attachments
Added a concrete implementation for AbstractWikitextDocumentProvider (23.82 KB, patch)
2010-07-25 15:29 EDT, Harshana Eranga Martin CLA
no flags Details | Diff
mylyn/context/zip (182.83 KB, application/octet-stream)
2010-07-25 15:30 EDT, Harshana Eranga Martin CLA
no flags Details
DOM model for WikiText (57.25 KB, patch)
2010-08-16 12:24 EDT, Harshana Eranga Martin CLA
no flags Details | Diff
DOM model for WikiText (57.25 KB, patch)
2010-08-16 12:27 EDT, Harshana Eranga Martin CLA
no flags Details | Diff
DOM model for WikiText (57.25 KB, patch)
2010-08-16 12:29 EDT, Harshana Eranga Martin CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.