Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Technical question regarding the MarkupViewer
Technical question regarding the MarkupViewer [message #548497] Thu, 22 July 2010 07:46 Go to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

I have a question about your MarkupViewer, but first let me put everything in context. I need to have a support for (a subset of ?) the textile language and I can't use your API. The MarkupViewer would be perfect for me, and it works very nicely, I tested it, but I can't have a dependency with your API so I can't use it. I would like to, but I can't (I'm working on Acceleo and the feature I need it for is "too small" to have such a "big" dependency). So I've been digging in your code and there's one thing that I haven't found.

If I give "*yo*" to your MarkupViewer, your partition scanner, your code scanner and everything detect that this should be in bold, but you are not showing "*yo*" (in bold) in the viewer but "yo". The offset/length of the area that should be in bold have been recalculated and the two "*" have been deleted. So what is the class and the method in charge of that transformation ?

Regards,

Stephane Begaudeau, Obeo
Re: Technical question regarding the MarkupViewer [message #549700 is a reply to message #548497] Tue, 27 July 2010 15:22 Go to previous message
David Green is currently offline David GreenFriend
Messages: 136
Registered: July 2009
Senior Member
Stephane,

Great to see that you're interested in WikiText. Why do you call the
dependency "big"?

MarkupViewer transforms content to HTML prior to display. This enables
it to perform transforms such as the one you mentioned, and it also
makes it work well with multiple markup languages. This transform is
performed in
org.eclipse.mylyn.wikitext.ui.viewer.MarkupViewer.setDocumen t(IDocument,
IAnnotationModel, int, int). MarkupViewer extends HtmlViewer, which
handles the text styles of the HTML markup.

Regards,

David

On 7/22/2010 12:46 AM, Stephane Begaudeau wrote:
> small" to have such a "big" dependency). So I've been digging in your
> code and there's one thing that I haven't found.
>
> If I give "*yo*" to your MarkupViewer, your partition scanner, your code
> scanner and everything detect that this should be in bold, but you are
> not showing "*yo*" (in bold) in the viewer but "yo". The offset/length
> of the area that should be in bold have been recalculated and the two
> "*" have been deleted. So what is the class and the method in charge of
> that transformation ?
>
> Regards,
>
> Stephane Begaudeau, Obeo
Previous Topic:WikiText Templates and Content Assist
Next Topic:Bugzilla tasks are all mapped to priority P3 after the helios update
Goto Forum:
  


Current Time: Thu Apr 25 10:29:12 GMT 2024

Powered by FUDForum. Page generated in 0.02736 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top