Skip to main content



      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 05:59 Go to next message
Eclipse UserFriend
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
Re: Deprecation (Striking out some content) in xtext editor [message #1414794 is a reply to message #1414791] Mon, 01 September 2014 06:04 Go to previous messageGo to next message
Eclipse UserFriend
not of the box - but with a custom concept + semantic highlighting this should work - e.g. xtend does this
Re: Deprecation (Striking out some content) in xtext editor [message #1414803 is a reply to message #1414794] Mon, 01 September 2014 06:25 Go to previous messageGo to next message
Eclipse UserFriend
Hi Christian,
Thanks for your reply. Can you give me an idea as how to start with this..

Thanks and regards,
Arshad
Re: Deprecation (Striking out some content) in xtext editor [message #1414806 is a reply to message #1414803] Mon, 01 September 2014 06:38 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Deprecation (Striking out some content) in xtext editor [message #1414954 is a reply to message #1414806] Mon, 01 September 2014 14:05 Go to previous message
Eclipse UserFriend
Hi Christian,
Thanks for your help.
Did it with Syntax Highlighting in Xtend.


Regards,
Arshad

[Updated on: Mon, 01 September 2014 14:05] by 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: Thu Jul 03 13:14:39 EDT 2025

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

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

Back to the top