Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Task Tag support
Task Tag support [message #645882] Mon, 20 December 2010 22:37 Go to next message
No real name is currently offline No real nameFriend
Messages: 101
Registered: August 2010
Senior Member
Hi,

Does anyone have some sample code they'd be willing to share about how to implement task tag support for an Xtext editor (things like TODO/FIXME etc.)?

Thank you for any help.
Re: Task Tag support [message #645925 is a reply to message #645882] Tue, 21 December 2010 08:44 Go to previous message
Meinte Boersma is currently offline Meinte BoersmaFriend
Messages: 434
Registered: July 2009
Location: Leiden, Netherlands
Senior Member
I haven't got code for that, but you might draw some (or rather: a lot of Very Happy) inspiration from XtendTools ( http://fornax.itemis.de/confluence/display/fornax/Xtend+Tool s) and most notably its source. XtendTools basically uses a new Xtext-grammar for Xtend which is also aware of Javadoc-style comments. After parsing, the information is used to generate documentation from.

I'd go the same way for Xtext: look at the part of the grammar for XtendTools which does the comments parsing and simply nick the official (semantic bit of the) Xtext grammar from the Xtext plugins. You have to take care of overlapping extensions (.xtext) somehow but that should be covered in XtendTools as well.


[Updated on: Tue, 21 December 2010 08:44]

Report message to a moderator

Re: Task Tag support [message #645943 is a reply to message #645882] Tue, 21 December 2010 08:42 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Xtext 2.0 has support for javadoc like comments. Have a look at the
sources from HEAD to at least catch the idea how to access the contents
of comments without having to store it in the EMF model. A good start
should be
/org.eclipse.xtext/src/org/eclipse/xtext/documentation/impl/ MultiLineCommentDocumentationProvider.java

For the UI side, there should be some Eclipse resource out ther. Google
is your friend :-)

Am 20.12.10 23:37, schrieb pgbackup@yahoo.com:
> Hi,
>
> Does anyone have some sample code they'd be willing to share about how
> to implement task tag support for an Xtext editor (things like
> TODO/FIXME etc.)?
> Thank you for any help.


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com


---
Get professional support from the Xtext committers at www.typefox.io
Previous Topic:Xtext generated code missing
Next Topic:Best practices: Bridge Guice and OSGi services?
Goto Forum:
  


Current Time: Fri Apr 26 22:25:21 GMT 2024

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

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

Back to the top