| Summary: | Implementing a new DocumentProvider for Rich Editor | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Harshana Eranga Martin <harshana05> | ||||||||||||
| Component: | Mylyn | Assignee: | 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
Harshana Eranga Martin
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. 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.
Created attachment 175186 [details]
mylyn/context/zip
Harshana, your patch does not appear to contain any Java source code. 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.
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.
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.
Closed as part of backlog clean-up. Please re-open if you'd like to see this revisited, perhaps with a contribution. |