Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EVL anf GMF mindmap example
EVL anf GMF mindmap example [message #16337] Wed, 29 April 2009 09:11 Go to next message
Yuri G is currently offline Yuri GFriend
Messages: 32
Registered: July 2009
Member
Hello!

I'm trying to use EVL validations in the GMF mindmap example with no
success.
I followed all the steps from
http://epsilonlabs.wiki.sourceforge.net/EVL-GMF+Integration.

mindmap.evl looks like this:

context Topic {
constraint ErrorTest {

check : false

message : 'ERROR!'

}
}

and plugin.xml:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.epsilon.evl.emf.validation">
<constraintsBinding
constraints="validation/mindmap.evl"
namespaceURI="mindmap">
</constraintsBinding>
</extension>
<extension
point="org.eclipse.ui.ide.markerResolution">
<markerResolutionGenerator

class=" org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGe nerator "

markerType="org.eclipse.gmf.examples.mindmap.diagram.diagnostic ">
</markerResolutionGenerator>
<markerResolutionGenerator

class=" org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGe nerator "
markerType="org.eclipse.emf.ecore.diagnostic">
</markerResolutionGenerator>
</extension>
</plugin>

I would gladly appreciate any help.
Re: EVL anf GMF mindmap example [message #16378 is a reply to message #16337] Wed, 29 April 2009 10:27 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Yuri,

The namespaceURI in the constraintBinding of your plugin.xml should be
"http://www.example.org/mindmap" (you can find this in the root EPackage
of mindmap.ecore) instead of "mindmap".

Cheers,
Dimitris

Yuri G wrote:
> Hello!
>
> I'm trying to use EVL validations in the GMF mindmap example with no
> success.
> I followed all the steps from
> http://epsilonlabs.wiki.sourceforge.net/EVL-GMF+Integration.
>
> mindmap.evl looks like this:
>
> context Topic {
> constraint ErrorTest {
>
> check : false
>
> message : 'ERROR!'
>
> }
> }
>
> and plugin.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.4"?>
> <plugin>
> <extension
> point="org.eclipse.epsilon.evl.emf.validation">
> <constraintsBinding
> constraints="validation/mindmap.evl"
> namespaceURI="mindmap">
> </constraintsBinding>
> </extension>
> <extension
> point="org.eclipse.ui.ide.markerResolution">
> <markerResolutionGenerator
>
> class=" org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGe nerator "
>
> markerType="org.eclipse.gmf.examples.mindmap.diagram.diagnostic ">
> </markerResolutionGenerator>
> <markerResolutionGenerator
>
> class=" org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGe nerator "
> markerType="org.eclipse.emf.ecore.diagnostic">
> </markerResolutionGenerator>
> </extension>
> </plugin>
>
> I would gladly appreciate any help.
>
Re: EVL anf GMF mindmap example [SOLVED] [message #16841 is a reply to message #16378] Wed, 29 April 2009 11:32 Go to previous message
Yuri G is currently offline Yuri GFriend
Messages: 32
Registered: July 2009
Member
Hello, Dimitris.

Thanks you very much, now it works!
Re: EVL anf GMF mindmap example [message #567262 is a reply to message #16337] Wed, 29 April 2009 10:27 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Yuri,

The namespaceURI in the constraintBinding of your plugin.xml should be
"http://www.example.org/mindmap" (you can find this in the root EPackage
of mindmap.ecore) instead of "mindmap".

Cheers,
Dimitris

Yuri G wrote:
> Hello!
>
> I'm trying to use EVL validations in the GMF mindmap example with no
> success.
> I followed all the steps from
> http://epsilonlabs.wiki.sourceforge.net/EVL-GMF+Integration
>
> mindmap.evl looks like this:
>
> context Topic {
> constraint ErrorTest {
>
> check : false
>
> message : 'ERROR!'
>
> }
> }
>
> and plugin.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.4"?>
> <plugin>
> <extension
> point="org.eclipse.epsilon.evl.emf.validation">
> <constraintsBinding
> constraints="validation/mindmap.evl"
> namespaceURI="mindmap">
> </constraintsBinding>
> </extension>
> <extension
> point="org.eclipse.ui.ide.markerResolution">
> <markerResolutionGenerator
>
> class=" org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGe nerator "
>
> markerType="org.eclipse.gmf.examples.mindmap.diagram.diagnostic ">
> </markerResolutionGenerator>
> <markerResolutionGenerator
>
> class=" org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGe nerator "
> markerType="org.eclipse.emf.ecore.diagnostic">
> </markerResolutionGenerator>
> </extension>
> </plugin>
>
> I would gladly appreciate any help.
>
Re: EVL anf GMF mindmap example [SOLVED] [message #567295 is a reply to message #16378] Wed, 29 April 2009 11:32 Go to previous message
Yuri G is currently offline Yuri GFriend
Messages: 32
Registered: July 2009
Member
Hello, Dimitris.

Thanks you very much, now it works!
Previous Topic:EWL - Calling a wizard from a wizard
Next Topic:epsilon 0.8.5 generation problem
Goto Forum:
  


Current Time: Fri Apr 26 13:52:14 GMT 2024

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

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

Back to the top