Skip to main content



      Home
Home » Modeling » QVT-OML » Create QVTo project programmatically
Create QVTo project programmatically [message #1859926] Wed, 05 July 2023 14:21 Go to next message
Eclipse UserFriend
Hello,

I want to create a QVTo project in Eclipse programmatically through Java. Do you know if there is any existing code for that, or some starting point on what would be needed?

Thank you!
Re: Create QVTo project programmatically [message #1859941 is a reply to message #1859926] Thu, 06 July 2023 07:11 Go to previous messageGo to next message
Eclipse UserFriend
Yes and No.

There could usefully be a File->New ... create QVTo project that might be a bit more flexible than the install UML2RBDMS example.

But what is a QVTo project? little more than a Java project with a QVTo nature. (Note that the .settings/org.eclipse.m2m.qvt.oml.mmodel.urimap is now obsolete.)

Live creation/enhancement of a project is done via the IProjectDescription interface for which you can search references to find many examples.

For my OCL and QVTd test projects, I prefer to just create all the exact files that I want in a not-yet-project folder and then just open it. NB if you programmatically enhance files in a project, it is very easy to fail to refresh adequately and find yourself in an obscure mess. You can find my test project support at org.eclipse.ocl.examples.xtext.tests.TestFileSystem and many related files.

If you find some useful functionality for a File->New ... create QVTo project, please contribute it or at least raise a Bugzilla detailing the functionality that could be offered.
Re: Create QVTo project programmatically [message #1859974 is a reply to message #1859941] Fri, 07 July 2023 09:31 Go to previous message
Eclipse UserFriend
Take a look at the NewProjectCreationOperation class: https://git.eclipse.org/c/mmt/org.eclipse.qvto.git/tree/plugins/org.eclipse.m2m.qvt.oml.ui/src/org/eclipse/m2m/internal/qvt/oml/ui/wizards/project/NewProjectCreationOperation.java
Previous Topic:Type references for nested EClasses
Next Topic:Remove object in place transformation
Goto Forum:
  


Current Time: Sun Aug 31 01:06:32 EDT 2025

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

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

Back to the top