integrating EMFT JET into GMF [message #600391] |
Fri, 29 December 2006 02:01 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03817 seconds