Skip to main content



      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 09:44 Go to next message
Eclipse UserFriend
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 12:56 Go to previous messageGo to next message
Eclipse UserFriend
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 04:20 Go to previous messageGo to next message
Eclipse UserFriend
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 10:22 Go to previous messageGo to next message
Eclipse UserFriend
> 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 11:07 Go to previous messageGo to next message
Eclipse UserFriend
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 07:56 Go to previous message
Eclipse UserFriend
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: Sat May 10 08:52:18 EDT 2025

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

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

Back to the top