Overriding default validator of one particular reference object [message #1800835] |
Tue, 08 January 2019 16:20  |
Eclipse User |
|
|
|
Hi all,
I have implemented a DSL to replace our test-cases which have been described in Excel so far.
My DSL also contains references to other elements like:
StepCall returns Expression:
{StepCall } 'call' calledstep=[StepName] '(' (arguments+=ParamValue (',' arguments+=ParamValue)*)? ')'
;
We have also a launch configuration which can deal with the new DSL and the old Excel stuff in order to run the tests.
Because of that I need a mixture for that call syntax in my DSL editor.
A call of StepCall can either point to an existing StepName from the DSL or to a string representing an Excel file.
With the rule above I get a validation error if there is no StepName defined inside my DSL language.
My question is, how can I override that default check for references to check for a StepName or an existing Excel file. I know how to implement additional checks but I want to replace the default checks in my case.
Is there a better way than overriding the validation?
Could I apply the rule to either be a call or a string?
Thanks in advance!
Best regards,
Martin
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04720 seconds