text: Eclipse Community Forums - RDF feed Eclipse Community Forums Cannot integrate evl with emf tree-editor <![CDATA[Hi everybody. I'm new in eclipse-emf-evl world. I've followed the instructions () to integrate a gmf editor with evl. In my case is not a graphic editor but a tree editor. So, I do everything but adding this markerResolution, as I don't have a graphic editor (just a tree editor). •class : org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGenerator •markerType : org.eclipse.epsilon.eugenia.examples.filesystem.diagram.diagnostic I get the editor working, I validate the model and it says everything is ok. But this should not happen as I have this constratint in evl: (notice it is a stupid one, just for learning purpose). constraint AlwaysFail { check { return false; } message : 'Always false fired for ' + self.eClass().name } I'd appreciate any clue. Thanks in advance. Oskar ]]> oskar saiz 2013-02-25T15:40:35-00:00 Re: Cannot integrate evl with emf tree-editor <![CDATA[Hi Oskar, Have you perhaps tried to add the 2nd markerResolutions as well? class : org.eclipse.epsilon.evl.emf.validation.EvlMarkerResolutionGenerator markerType : org.eclipse.emf.ecore.diagnostic If so, could you please double-check that your EVL constraint is correct (the "context" declaration seems to be missing from the excerpt provided)? If none of these help, could you please put together a minimal example [1] and attach it here so that we can have a look? Cheers, Dimitris [1]]]> Dimitris Kolovos 2013-02-26T01:17:45-00:00 Re: Cannot integrate evl with emf tree-editor <![CDATA[Hi Dimitris. First of all, thanks for the super-quick reply. Second: Yes, I added the 2nd markerResolutions, successfully. Just a silly question about this: This extensions are to be added to the integration plugin I've created, not to the editor. Am I wright? Third: You are right, I did not include the context in my post, but I did in my system. Here it is the full evl file. context GenIkPerson { constraint AlwaysFail { check { return false; } message : 'Always false fired for ' + self.eClass().name } } The model is very simple (emfatic): @namespace(uri="flowchartdsl", prefix="") @emf.gen(basePackage="org.ttc10") package flowchartdsl; class GenIkTown { val GenIkPerson[*] listOfCitycens; } class GenIkPerson { attr String[1] name; attr Integer[1] age; } And the process I follow is also fairly simple: 1.- From this emf, I generate the ecore model 2.- From the ecore model generated, I do: Eugenia->Generate EMF Gen Model 3.- From the genModel, I do: Generate All 4.- Then I run the generated editor 5.- On the other hand, I created the plugin with the evl. This is my eclipse version: ECLIPSE VERSION Eclipse Modeling Tools Version: Juno Service Release 1 Build id: 20120920-0800 Epsilon version: 1.0.0.201211082326 I attach the following files: 1.- MMfirst.emf A Meta Model 2.- mondra.flowchartdsl A model 3.- minimal.zip The exported eclipse projects 4.- Eclipse Application (1).launch The launch configuration Thank you very much in advance. Oskar Pd.- Just a personal thing: I work for Ikerlan, with Salva Trujillo, and I also studied at York Univ. ]]> oskar saiz 2013-02-26T08:01:07-00:00 Re: Cannot integrate evl with emf tree-editor <![CDATA[Solved!!! I made a mistake (as usually happens...). I followed the instructions too literally: ..Then we right-click it and add a new constraintBinding. In the namespaceURI field of the extension we set the value to filesystem... So, I wrote "filesystem" but in my metamodel the namespaceURI was another one. Sorry for the noise and thanks Dimitris. Bye oskar ]]> oskar saiz 2013-02-26T17:14:36-00:00 Re: Cannot integrate evl with emf tree-editor <![CDATA[Hi Oskar, No problem. Glad you got this working! Cheers, Dimitris ]]> Dimitris Kolovos 2013-02-26T23:13:04-00:00