Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Deprecation (Striking out some content) in xtext editor(Deprecation in xtext editor)
icon5.gif  Deprecation (Striking out some content) in xtext editor [message #1414791] Mon, 01 September 2014 09:59 Go to next message
Arshad Adavani is currently offline Arshad AdavaniFriend
Messages: 163
Registered: July 2013
Location: Bangalore
Senior Member
Hi all,
As we get it in java, For E.g. if some method is deprecated that method name will be struck out . Can we do the same thing in Xtext editor ?


Regards,
Arshad


Arshad
Re: Deprecation (Striking out some content) in xtext editor [message #1414794 is a reply to message #1414791] Mon, 01 September 2014 10:04 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
not of the box - but with a custom concept + semantic highlighting this should work - e.g. xtend does this

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Deprecation (Striking out some content) in xtext editor [message #1414803 is a reply to message #1414794] Mon, 01 September 2014 10:25 Go to previous messageGo to next message
Arshad Adavani is currently offline Arshad AdavaniFriend
Messages: 163
Registered: July 2013
Location: Bangalore
Senior Member
Hi Christian,
Thanks for your reply. Can you give me an idea as how to start with this..

Thanks and regards,
Arshad


Arshad
Re: Deprecation (Striking out some content) in xtext editor [message #1414806 is a reply to message #1414803] Mon, 01 September 2014 10:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
with the grammar or with semantic highlighting?

sarching for xtext + semantic highlighting should give starting points.
you can have a look at the xtend code as well

http://git.eclipse.org/c/tmf/org.eclipse.xtext.git/tree/plugins/org.eclipse.xtend.ide/src/org/eclipse/xtend/ide/highlighting/XtendHighlightingCalculator.java
http://git.eclipse.org/c/tmf/org.eclipse.xtext.git/tree/plugins/org.eclipse.xtext.xbase.ui/src/org/eclipse/xtext/xbase/ui/highlighting/XbaseHighlightingCalculator.java
http://git.eclipse.org/c/tmf/org.eclipse.xtext.git/tree/plugins/org.eclipse.xtext.xbase.ui/src/org/eclipse/xtext/xbase/ui/highlighting/XbaseHighlightingConfiguration.java


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Deprecation (Striking out some content) in xtext editor [message #1414954 is a reply to message #1414806] Mon, 01 September 2014 18:05 Go to previous message
Arshad Adavani is currently offline Arshad AdavaniFriend
Messages: 163
Registered: July 2013
Location: Bangalore
Senior Member
Hi Christian,
Thanks for your help.
Did it with Syntax Highlighting in Xtend.


Regards,
Arshad


Arshad

[Updated on: Mon, 01 September 2014 18:05]

Report message to a moderator

Previous Topic:Xtext: problem in editor when creating a new file
Next Topic:Xtext for language editor window in non-Eclipse app
Goto Forum:
  


Current Time: Tue Apr 23 12:17:05 GMT 2024

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

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

Back to the top