Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Duplicate Name Default Error
Duplicate Name Default Error [message #1017134] Sat, 09 March 2013 18:47 Go to next message
junior developer is currently offline junior developerFriend
Messages: 335
Registered: January 2013
Senior Member
Hi all,

Xtext check duplicate ıd .

GenerateMyDsl2.mwe2:

fragment = validation.JavaValidatorFragment {
// composedCheck = "org.eclipse.xtext.validation.ImportUriValidator"
composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
}

composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator: this line check
duplicate ıd and generate an error "Duplicate book l222"
when ı define book my language.
book l222
book l222
I want change this error "Duplicate book l222" .How class is used ? LinkingDiagnosticMessageProvider ? or ConcreteSyntaxValidator ?
Re: Duplicate Name Default Error [message #1017137 is a reply to message #1017134] Sat, 09 March 2013 19:39 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6540
Registered: July 2009
Senior Member
Hi,

as always. having a look at the code helps. bind your own NamesAreUniqueValidationHelper
Re: Duplicate Name Default Error [message #1017149 is a reply to message #1017137] Sat, 09 March 2013 22:06 Go to previous message
junior developer is currently offline junior developerFriend
Messages: 335
Registered: January 2013
Senior Member
thank you so much for helping me.

Best Regards Christian,
Previous Topic:Auto-edit after reference completion
Next Topic:Working With a User Generated Script
Goto Forum:
  


Current Time: Thu Dec 18 09:45:54 GMT 2014

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

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