|
Re: [QVTo] Running a QVT transformation from a program [message #641493 is a reply to message #641437] |
Thu, 25 November 2010 16:15 |
Eclipse User |
|
|
|
Originally posted by: koen.yskout.cs.kuleuven.be
See http://wiki.eclipse.org/QVTOML/Examples/InvokeInJava to invoke a
transformation directly from Java.
For parameters, I think (not sure) you can use the context properties
(like 'keepModeling' in the example), and retrieve those in your QVT
file. Alternatively, you can always create a separate model that
represents your configuration/parameters, and add that as a second input
to your transformation.
Kind regards,
Koen
On 25/11/10 14:16, Haffi wrote:
> Hi,
>
> I'm building a eclipse plugin for transformations of UML models. What
> I'd like to do is to provide a menu entry in the context menu of a model
> (via right-clicking) and selecting a transformation. In some cases I'd
> like to provide the user with the option of sending a parameter (maybe
> string) as well, do you know how I would import these parameters in the
> QVT file?
|
|
|
|
|
|
Re: [QVTo] Running a QVT transformation from a program [message #642233 is a reply to message #642226] |
Tue, 30 November 2010 13:54 |
Dennis Hendriks Messages: 75 Registered: January 2010 Location: The Netherlands |
Member |
|
|
Haffi wrote:
> OK, I got rid of this error thanks to Dennis Hendriks, and when I try to
> run the Tranformation I get the error: "The JAR of this class file
> belongs to a container "Plugin Depenedencies" which does not allow
> modifications to source attachements on its entries" when it tries to
> get the resources. I'm developing this as a plugin and I guess this is
> not exactly a QVTo related problem but if anyone knows what to do then
> I'm open to suggestions.
It kind of sounds like you're trying to modify a class file's sources,
while the class file is a plug-in dependency of your project. This class
file is then probably a class from EMF or QVTo or something like that.
In that case, it wouldn't make sense to modify that code, only your own
code. I also would not expect this when running the transformation, but
maybe you have some kind of autosave on run feature turned on?
You could try to debug, stepping through your code, trying to find out
where things go wrong.
If this doesn't help, then I think we need to see more of your code to
better answer your question.
Dennis
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04806 seconds