Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » comment/uncomment handlers
comment/uncomment handlers [message #1722906] Wed, 10 February 2016 09:21 Go to next message
Eleanor Richie is currently offline Eleanor RichieFriend
Messages: 125
Registered: August 2014
Senior Member
I would like to enable add eclipse buttons to comment and uncomment. What are the commenting handlers in xtext? I know I should add the extention points to the plugin.xml in the ui module but I need to get the handlers.

Thanks in advance
Re: comment/uncomment handlers [message #1722909 is a reply to message #1722906] Wed, 10 February 2016 09:36 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
The code is in org.eclipse.xtext.ui.editor.toggleComments.ToggleSLCommentAction. Unfortunately, it does not use the handler API but TextEditorAction instead. So you might have to extract the logic yourself.

Get professional support from the Xtext committers at
Previous Topic:Lexer problem
Next Topic:Log4j error
Goto Forum:

Current Time: Sun Oct 02 22:31:30 GMT 2022

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

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

Back to the top