Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » integrating EMFT JET into GMF
integrating EMFT JET into GMF [message #600391] Fri, 29 December 2006 02:01
Eclipse UserFriend
Originally posted by: peter.kovari.gmail.com

Hello,
I am trying to use JET2 (EMFT JET) in a GMF diagram editor. The plan is
to transform the model from the editor using JET2 and write the result
into a file (using the <ws:file> tags).
In GMF I get the following error:

java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not
match outer scope rule:
MultiRule[L/test/model/default.statemachine_diagram,L/test/m odel/default.statemachine]
....

Alex Shatalin from the GMF newsgroup suggested to modify the
..getSaveRule() method to accomodate the new resource for JET2. I managed
to get the rule in, however the problem persists:

java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not
match outer scope rule:
MultiRule[L/test/dump.xml,L/test/model/default.statemachine_ diagram,L/test/model/default.statemachine]
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:62)

It is interesting that the application is complaining about the "/" URL
and not the "/test/dump.xml".

I did several debug runs with the application and found that the JET2
engine sets the baseURL (descriptor:JETBundleDescriptor) to "/" which is
exactly the URI the application is complaining about. I suspect it
happens because the transformation is executed programmatically and it
takes the defaultRoot value which is the workspace root. This value is
checked in the JobManager but of course it is not registered.

Any ideas how to resolv this?

Thanks,
PETER
Previous Topic:Question about CDO - is it possible to disconnect from server?
Next Topic:Teneo: Objects are not added to resource.contents if fetch="subselect" for collection
Goto Forum:
  


Current Time: Sat Apr 20 03:22:41 GMT 2024

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

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

Back to the top