Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Check: How to activate the EMF Validation Adapter?
Check: How to activate the EMF Validation Adapter? [message #373318] Wed, 29 July 2009 13:44 Go to next message
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 42
Registered: July 2009
Member
Hello,

I am currently trying to include my constraints that are in oAW check files
into the standard EMF validation.

As far as I have seen, the extension point
"org.eclipse.xtend.typesystem.emf.checks" is the new EMF Validation Adapter.
Unfortunately, I cannot get this working - it simply does nothing... No log
entries, no exceptions, no registering of an EValidator.

In the extension point description it says:
"To enable this extension point, make sure the plug-in is loaded, e.g. by
calling Activator.getDefault() explicitly. Otherwise the extensions will not
be parsed and no EValidator will be registered."

But this extension point is contained in the plugin
org.eclipse.xtend.typesystem.emf, which has no Activator :-( So how do I
enable this extension point?

It would be great if anybody had a working example of this - thanks in
advance!
Kai
Re: Check: How to activate the EMF Validation Adapter? [message #484484 is a reply to message #373318] Mon, 07 September 2009 16:56 Go to previous messageGo to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
I'm also curious about this. Had the same problem. Any hints anyone?
Hauke

Kai Kreuzer schrieb:
> Hello,
>
> I am currently trying to include my constraints that are in oAW check files
> into the standard EMF validation.
>
> As far as I have seen, the extension point
> "org.eclipse.xtend.typesystem.emf.checks" is the new EMF Validation Adapter.
> Unfortunately, I cannot get this working - it simply does nothing... No log
> entries, no exceptions, no registering of an EValidator.
>
> In the extension point description it says:
> "To enable this extension point, make sure the plug-in is loaded, e.g. by
> calling Activator.getDefault() explicitly. Otherwise the extensions will not
> be parsed and no EValidator will be registered."
>
> But this extension point is contained in the plugin
> org.eclipse.xtend.typesystem.emf, which has no Activator :-( So how do I
> enable this extension point?
>
> It would be great if anybody had a working example of this - thanks in
> advance!
> Kai
Re: Check: How to activate the EMF Validation Adapter? [message #484553 is a reply to message #373318] Tue, 08 September 2009 08:20 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Kai,

please ensure that the plugin org.eclipse.xtend.typesystem.emf.ui is
registered. It will call CheckRegistry.getInstance() which in turn will
register any validator.
If this does not work, please file a ticket.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Kai Kreuzer schrieb:
> Hello,
>
> I am currently trying to include my constraints that are in oAW check files
> into the standard EMF validation.
>
> As far as I have seen, the extension point
> "org.eclipse.xtend.typesystem.emf.checks" is the new EMF Validation Adapter.
> Unfortunately, I cannot get this working - it simply does nothing... No log
> entries, no exceptions, no registering of an EValidator.
>
> In the extension point description it says:
> "To enable this extension point, make sure the plug-in is loaded, e.g. by
> calling Activator.getDefault() explicitly. Otherwise the extensions will not
> be parsed and no EValidator will be registered."
>
> But this extension point is contained in the plugin
> org.eclipse.xtend.typesystem.emf, which has no Activator :-( So how do I
> enable this extension point?
>
> It would be great if anybody had a working example of this - thanks in
> advance!
> Kai
>
>
Re: Check: How to activate the EMF Validation Adapter? [message #484640 is a reply to message #484553] Tue, 08 September 2009 14:22 Go to previous messageGo to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
> please ensure that the plugin org.eclipse.xtend.typesystem.emf.ui is
> registered.

Where and how? The extension point documentation does not say anything
about this step.
The plugin is activated in my run configuration but nothing else.

Hauke


Sebastian Zarnekow schrieb:
> Hi Kai,
>
> please ensure that the plugin org.eclipse.xtend.typesystem.emf.ui is
> registered. It will call CheckRegistry.getInstance() which in turn will
> register any validator.
> If this does not work, please file a ticket.
>
> Regards,
> Sebastian
Re: Check: How to activate the EMF Validation Adapter? [message #484644 is a reply to message #484640] Tue, 08 September 2009 15:07 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Hauke,

please file a ticket as we should have a look at this one.
So far you'll have to register the CheckValidatorAdapter on your own.
Please have a look at the EValidator.Registry.

Sorry for inconvenience,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Hauke Fuhrmann schrieb:
> > please ensure that the plugin org.eclipse.xtend.typesystem.emf.ui is
> > registered.
>
> Where and how? The extension point documentation does not say anything
> about this step.
> The plugin is activated in my run configuration but nothing else.
>
> Hauke
>
>
> Sebastian Zarnekow schrieb:
>> Hi Kai,
>>
>> please ensure that the plugin org.eclipse.xtend.typesystem.emf.ui is
>> registered. It will call CheckRegistry.getInstance() which in turn
>> will register any validator.
>> If this does not work, please file a ticket.
>>
>> Regards,
>> Sebastian
Re: Check: How to activate the EMF Validation Adapter? [message #484805 is a reply to message #484644] Wed, 09 September 2009 11:56 Go to previous message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
Hi Sebastian,

registering manually works fine. I filed a ticket at
https://bugs.eclipse.org/288930

Hauke


Sebastian Zarnekow schrieb:
> please file a ticket as we should have a look at this one.
> So far you'll have to register the CheckValidatorAdapter on your own.
> Please have a look at the EValidator.Registry.
Previous Topic:[Acceleo] Code Beautifying
Next Topic:[XPAND] 50 % slowdown compared to OAW XPAND
Goto Forum:
  


Current Time: Fri Apr 19 10:10:31 GMT 2024

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

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

Back to the top