Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Auto Editing (parenthesis closing issue)(How to disable or auto editing strategy )
Auto Editing (parenthesis closing issue) [message #830135] Tue, 27 March 2012 08:38 Go to next message
Wladimir Schamai is currently offline Wladimir SchamaiFriend
Messages: 53
Registered: May 2010
Member
Hi all,

I have a problem with auto editing when parenthesis are closed automatically.

Can anyone point me any explanation for how to disable or modify the auto editing strategy? There is nothing in the documentation...

Thanks in advance
Wladimir
Re: Auto Editing (parenthesis closing issue) [message #830149 is a reply to message #830135] Tue, 27 March 2012 08:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14664
Registered: July 2009
Senior Member
See DefaultAutoEditStrategyProvider

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Auto Editing (parenthesis closing issue) [message #830160 is a reply to message #830149] Tue, 27 March 2012 09:22 Go to previous messageGo to next message
Wladimir Schamai is currently offline Wladimir SchamaiFriend
Messages: 53
Registered: May 2010
Member
Thanks for the quick reply. So, to exclude the closing of parenthesis, brackets and braces, I overwrite like this?

	@Override
	protected void configure(IEditStrategyAcceptor acceptor) {
		configureIndentationEditStrategy(acceptor);
		configureStringLiteral(acceptor);
		//configureParenthesis(acceptor);
		//configureSquareBrackets(acceptor);
		//configureCurlyBracesBlock(acceptor);
		configureMultilineComments(acceptor);
		configureCompoundBracesBlocks(acceptor);
	}


Where should I put my Class that extends DefaultAutoEditStrategyProvider?

[Updated on: Tue, 27 March 2012 09:22]

Report message to a moderator

Re: Auto Editing (parenthesis closing issue) [message #830215 is a reply to message #830160] Tue, 27 March 2012 10:45 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14664
Registered: July 2009
Senior Member
See DefaultUiModule.bindAbstractEditStrategyProvider

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Auto Editing (parenthesis closing issue) [message #830220 is a reply to message #830215] Tue, 27 March 2012 10:55 Go to previous message
Wladimir Schamai is currently offline Wladimir SchamaiFriend
Messages: 53
Registered: May 2010
Member
thanks, got it!
Previous Topic:How to resolve the reference to other resources in a resource file
Next Topic:Erros when using Xtext in a composite
Goto Forum:
  


Current Time: Tue Apr 16 04:03:51 GMT 2024

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

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

Back to the top