Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-dev] Soc 2010 Project - Rich Editor for Wiki Markup [Update]

Hi David,

Thanks a lot for that explanation. Then I will start by creating an editor to open *.textile format in the sandbox and let you know. Then we can continue the work as explained here. 

Thanks and Regards,
Harshana Martin

On 16 July 2010 20:52, David Green <david.green@xxxxxxxxxxx> wrote:
Harshana,

Thanks for the email.  I'm glad to hear that you're ready to move forward with the project.  At this point you should start by creating an editor in the sandbox as I suggested before, that can open any *.textile file.  I would then create a DocumentProvider implementation that creates Documents that have a backing DOM and have your new editor use this document provider.  

Though I don't expect you to use any of their classes, the WTP project provides an example of how this can be done wst.xml editors.  Their needs are more complex than ours, in that they have a large degree of extensibility built in -- as a result their architecture and classes are quite complex.  That said, it's still worthwhile to take a look at IModelManager, IDOMModel, and IDOMDocument for an example.

What it means is that your document (a character-based document) maintains a DOM as it is changed.  In this case as discussed before, we're not talking about an XML DOM, but a model specific to WikiText similar to that used by org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.FastMarkupPartitioner.PartitionBuilder.  Your editor will then be able to look at a structured model of the markup and know it's position in the model based on a character offset.  Buttons on your toolbar will be able to alter the DOM directly, resulting in changes to the character-based document.

That should be enough to get you started.  I'm sure that you'll have questions as you go, please post them here.

Good luck!

David

On Fri, Jul 16, 2010 at 7:39 AM, Harshana Eranga Martin <harshana05@xxxxxxxxx> wrote:
...
Since I have spent some time on the background and have a knowledge of the technologies which I have to use, I think now I am ready to start writing code for the project. As you have correctly mentioned again, I am not so sure from where I should start writing code. So please do help me figuring out from where should I begin writing code and what should I be doing next.

 I really want to make this project successful and I am ready to put in some serious effort for the remaining time for the project. So hope this project turns out to be a successful project. 

Thanks a lot.
Harshana


On 16 July 2010 08:33, David Green <david.green@xxxxxxxxxxx> wrote:
Harshana,

 
On Thu, Jul 15, 2010 at 10:50 AM, Harshana Eranga Martin <harshana05@xxxxxxxxx> wrote:
Hi All,

Since the midterm evaluations are now going on I think it's good to let the community know about the progress of the project. Since the project work started with some delay due to unavoidable university work, the project was off the schedule. Therefore I have rescheduled the tasks for the remaining weeks and currently working according to the new schedule. The project progress is recorded at [0]. Since the project has 3 main tasks such as Implementing a new DOM model, Implementing the new Editor and Implementing the Toolbar, I have started the work from the ToolBar implementation and done some work on the tool bar implementation and submit an initial patch. Mr. David suggested some points for patches. Therefore I am currently working on these points as well as understanding the current model used in the WikiText and Eclipse Platform in order to gain the necessary knowledge to prepare the new model. This new model will be capable of handling html in the same model as well. I have started blogging about the work I am doing. [1] is the blog dedicated for my project.
Harshana

_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-dev






--
Harshana Eranga Martin
Department of Computer Science & Engineering,
University of Moratuwa,
Moratuwa,
Sri Lanka.

ECF Committer: http://www.eclipse.org/ecf/
Blog: http://harshana05.blogspot.com
Profile: https://www.google.com/profiles/harshana05





--
Harshana Eranga Martin
Department of Computer Science & Engineering,
University of Moratuwa,
Moratuwa,
Sri Lanka.

ECF Committer: http://www.eclipse.org/ecf/
Blog: http://harshana05.blogspot.com
Profile: https://www.google.com/profiles/harshana05

Back to the top