Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Cannot integrate evl with emf tree-editor(Problems in first integration of evl with emf tree editor)
Cannot integrate evl with emf tree-editor [message #1014324] Mon, 25 February 2013 15:40 Go to next message
oskar saiz is currently offline oskar saizFriend
Messages: 17
Registered: February 2013
Junior Member
Hi everybody.

I'm new in eclipse-emf-evl world.

I've followed the instructions (http://www.eclipse.org/epsilon/doc/articles/evl-gmf-integration) 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
Re: Cannot integrate evl with emf tree-editor [message #1014524 is a reply to message #1014324] Tue, 26 February 2013 01:17 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

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] http://eclipse.org/epsilon/doc/articles/minimal-examples/
Re: Cannot integrate evl with emf tree-editor [message #1014646 is a reply to message #1014524] Tue, 26 February 2013 08:01 Go to previous messageGo to next message
oskar saiz is currently offline oskar saizFriend
Messages: 17
Registered: February 2013
Junior Member
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. Wink

Re: Cannot integrate evl with emf tree-editor [message #1014897 is a reply to message #1014646] Tue, 26 February 2013 17:14 Go to previous messageGo to next message
oskar saiz is currently offline oskar saizFriend
Messages: 17
Registered: February 2013
Junior Member
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
Re: Cannot integrate evl with emf tree-editor [message #1014959 is a reply to message #1014897] Tue, 26 February 2013 23:13 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2163
Registered: July 2009
Location: York, UK
Senior Member

Hi Oskar,

No problem. Glad you got this working!

Cheers,
Dimitris
Previous Topic:issue need your urgent attention regarding EVL constraints
Next Topic:Getter for annotated Operations?
Goto Forum:
  


Current Time: Tue Apr 23 06:34:08 GMT 2024

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

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

Back to the top