|
|
|
|
|
|
|
|
|
|
|
Re: Couldn't resolve reference to *** problem [message #1771436 is a reply to message #1771433] |
Fri, 25 August 2017 02:01   |
Eclipse User |
|
|
|
otherwise you might have to bind a custom validator that overrides the bevaviour and does not do this validation
public class CompositeEValidator2 extends CompositeEValidator {
@Override
protected void initDefaults() {
if (isUseEObjectValidator()) {
this.addValidator(new EObjectValidator() {
@Override
public boolean validate_UniqueID(EObject eObject, DiagnosticChain diagnostics,
Map<Object, Object> context) {
// don't check
return true;
}
@Override
public boolean validate_EveryProxyResolves(EObject eObject, DiagnosticChain diagnostics,
Map<Object, Object> context) {
// don't check, we have our own implementation, which creates nicer messages
return true;
}
@Override
public boolean validate_NoCircularContainment(EObject eObject, DiagnosticChain diagnostics,
Map<Object, Object> context) {
// don't check
return true;
}
});
}
}
}
class MyDslRuntimeModule extends AbstractMyDslRuntimeModule {
def Class<? extends CompositeEValidator> bindCompositeEValidator() {
return CompositeEValidator2
}
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.26912 seconds