I don't have module launcher tag in Acceleo in Eclipse - acceleo

I am using Eclipse version 3.6.2, and I have installed Acceleo plugin for it but according to the instructions and tutorials I have read, I should be having module launcher under Acceleo tag in 'New' menu but I don't have it. I tried to install the modules from module update link in acceleo, however during the installing the modules an error occurs showing this message
*Cannot complete the install because one or more required items could not be found.
Software being installed: UML 2.1 to Java generator 1.0.0.201102031027 (org.acceleo.module.pim.uml21.gen.java_feature.feature.group 1.0.0.201102031027)
Missing requirement: UML 2.1 to Java generator 1.0.0.201102031027 (org.acceleo.module.pim.uml21.gen.java_feature.feature.group 1.0.0.201102031027) requires 'fr.obeo.acceleo.gen 0.0.0' but it could not be found*
Can anyone please tell me, why I am getting this error or why I don't have module launcher?
Many thanks in advance.

I assume that you have installed the latest version of Acceleo that has been release last month, Acceleo 3.1 if that's not the case, you can install it with the Acceleo 3.1.x update site: http://download.eclipse.org/modeling/m2t/acceleo/updates/releases/3.1
You can find the Acceleo wizards under the new menu only if you are using the Acceleo perspective (Window -> Open perspective -> Other) otherwise you have to use the regular menu for all wizards (File -> New -> Other).
The Acceleo generator that you are installing is the UML to Java module for Acceleo 2.x. Acceleo 2.x and Acceleo 3.x are not compatible and therefore you cannot install this module unless you install the old version of Acceleo (its plugin are named fr.obeo.acceleo.* instead of org.eclipse.acceleo.*).
But, this generator is currently being migrated to Acceleo 3.1 and if you need it, you can grab it quite easily. This generator is licenced under the open source licence named EPL and its source code is available on github.com. If you want to install it, go to Github.com and download the source code (by using git, or the download button) then go in the root folder (the one visible in the link with the "plugins", "tests" subfolders) and then you can use maven 3 (maven 2 is not enough to build an Acceleo generator) to build the generator by typing "mvn clean package".
Maven will download half of the internet the first time you'll try to build it and in the end you will have an update site for this module in the "rootfolder/updatesite/org.obeonetwork.pim.uml2.gen.java.updatesite/target/repository" folder. You just have to install this UML to Java generator by adding this as an "local" update site. Once it's done, you can restart your Eclipse and then a new menu named "Acceleo model to text" will be available once you right click on a *.uml file in your workspace. With this menu, you'll be able to generate Java from this uml model.
The uml model in question need to have been created with a project compatible with EMF like the uml project of the Eclipse foundation (org.eclipse.uml.uml2). You can find an example of UML model in the Acceleo 3 examples (File -> New -> Examples).
If you don't need to build the generator, you can simply use its source code after having download it from github. You can use it, test it, fork it or even contribute to it as you want. And if you find a bug in this generator, you can report the problem on the Acceleo forum in the Eclipse Foundation (please use an [acceleo] tag in your title on the Eclipse forum) or on stack overflow.

Related

How to use maven artifact in the development of Eclipse plugin via Tycho

Since version 2.2.0 Tycho has introduced a new feature to allow using maven artifacts in PDE target platforms, and here's the how-to. Following its instructions I have included an artifact of Saxon-HE into my target platform. I can see the wrapped OSGi bundle of Saxon after ticking the Show Location Content option in the Target Definition Editor. Also I ran mvn clean verify command to make sure that the artifact is downloaded into my computer. However,
as I began to try to import the package into my Eclipse plugin code, I found no suggestions from this package.
When I tried to include the package as a feature in the Product Editor, I couldn't find any option.
In addition, when attempting to include it as required plugin / imported packages in the Plugin Editor, there was no option, too.
What's more, the product produced by mvn clean verify did not contain such plugin as Saxon-HE after checking my whole RCP project.
All the efforts in vain above made me wonder how I can use a maven artifact in my plugin development. I desperately need the functionalities Saxon-HE provides with to enhance my plugin. Anyone experienced sharing your expertise?
-- 2021.08.13 update --
Manually I included this plugin in the plugin list of my RCP project via source file editing. Its jar file appeared in the plugin folder of the product. But anyway I was not able to validate the availability of the library in the dependency tab of the plugin manifest editor as shown in Vogella's tutorial. Restarting the IDE did not help, either. This might mean that I have to manually code the source code without the content assistance.

Which versions are required to get a working Acceleo Maven build

Has anyone got the Acceleo Maven build to work?
If so what combination of Maven, Tycho, Eclipse, Acceleo, UML2/ecore worked for you?
And as a supplementary question do you still need to adjust the Java classes and config files before running the build (as was required for the old ANT build)?
To be clearer tycho does not like Maven 3.3, Maven 3.3 is the default with Luna. Every version of Eclipse has a different version of the ecore/uml model built in so migrating the Acceleo templates to another version of eclipse requires changes in all "module" definitions and hacking the version inside the UML models, so, its tedious trying to work out which versions are compatible.
I just wondered if someone had a working setup where all the components worked together.
After much trial and error:-
Eclipse Luna
Comes with Eclipse m2e 1.5
ecore uml2 version 5.0.2
Acceleo 3.5.1
Maven 3.0.5
org.eclipse.acceleo:org.eclipse.acceleo.maven:3.5.0-SNAPSHOT
All work together without the usual class not found and missing jars.
However I have yet to build a working pom that actually generates some
template output.
Interestingly the ANT build seems to work fine.
In the end it was just easier to knock up a .bat script to run
the generate and build.
You can have a look at the UML to Java generator of the Eclipse Foundation for the configuration of the pom.xml. For additional information on the use of maven with Acceleo, look at the dedicated page on the wiki.
You do not need to modify any Java class or configuration file now.

intellij idea. what library uses project?

I have Android Maven project which works with Netbeans and Eclipse and compiles in command line itself, but i have some problems with Intellij Idea. After importing the project the IDE complains about non-existing method of imports:
import org.w3c.dom.Node;
cannot find symbol
symbol : method getTextContent()
The method getTextContent() added in java version 1.5. I do use 1.7 Oracles JDK. Build target in pom.xml points to 1.5
Similar post about problem in Eclipse mentioned here says:
There are many jars packaged with xml-apis and they sometimes contain the same library routines, but at different versions.
I have searched how to lookup which version of library is used with IDE and how to priorities the right libraries.
Do someone have the answer?
In intellij go to module settings (right click module and its in the context menu).
Select project, you can choose and/or add a project SDK here, If you are using 1.7 it will probably be that version.
when you make/compile your project its probably running against the version above.
You can run maven targets (in my version there is a tab on the right) you should be able to do this if you right click on the pom file, this should compile.
In conclusion
use the same java version on your pom and in your project
try to move Android SDK module up. in "Project structure" -> "Modules" -> "Dependencies". And make sure You do not have the old maven module xml-apis there.

How can I set up my project hierarchy in QtCreator?

I'm quite new to QtCreator, so perhaps I left my heart in eclipse-ville, but I can't for the life of me understand how I should be setting up a project hierarchy in QtCreator. I understand there is an option to create a kind of root project and then from there add sub-projects to it, which makes sense but it leaves me wondering whether or not this is necessary at the time of creating the project, e.g. can I just create a library in one project and reference it later by another project?
I've tried setting up a blanket type of project by creating a new subdirs project and then adding the main program as a subproject, but then how should I add my library project?
Ideally, I'd like to create one project as the main application and reference another project as a library. Help?
The documentation of Qt Creator contains two sections that may help you find the answers to your questions:
Adding Subprojects to Projects
Adding Libraries to Projects
EDIT:
You can find a really simple sample project here: QtSymbianDllExample. "It is intended to demonstrate how to create and use a DLL with Qt on the Symbian platform". It is a sample for Symbian development but that is irrelevant now, I do not have a Symbian phone. What is important is that it contains a root project (QtSymbianDllExample\qtssymbiandllexample.pro) and two subprojects (QtSymbianDllExample\qtenginedll\qtenginedll.pro, QtSymbianDllExample\testui_simpledllengine\testui_simpledllengine.pro) which you can examine and compare to you projects. I have checked that I can build the root project by doing the following steps:
Download and install the Windows Offline Installer from http://www.qt.io/download/
Download and extract QtSymbianDllExample.zip
Run Qt Creator
File / Open File or Project... Select qtssymbiandllexample.pro
Build / Run qmake
Build / Build project "qtsymbiandllexample"

Which version of acceleo is been used in screencasts?

Can anyone please tell me which version of acceleo is been used in screencasts of acceleo website? Because currently I am using acceleo 2.7 and I am trying to do the same thing but I don't get the expected results!
Edit:
I am new to Acceleo and I was trying to learn from the tutorials, I downloaded topcased integrated into eclipse helios 'Topcased-RCP-win32-4.3.0.zip' from this link
http://www.topcased.org/index.php?idd_projet_pere=52&Itemid=60
and it is associated with acceleo 2.7, apparently the topcased is working because I can create the diagrams with no problem but when I create a new module launcher for hibernate and launch it, according to this screen cast
http://acceleo.org/screencast.phpwidth=1024&height=788&swf=modules/pages/jee/images/screencast/GenerationBDAcceleo&lang=en
it should generate the hbm.xml file and the sql files but the only thing I get is a 'src' folder and some other subfolders in it has been generated with no code!
Daniel,
Which screencasts are you talking about? The official Acceleo website is now hosted on Eclipse. Are you talking about the screencasts that can be found on its documentation page? Or about those that can be located through the Eclipse wiki? These are all for the current version of Acceleo, i.e the versions 3.*.
However if you are talking about the acceleo.org website, as you can see from its homepage, it is a website for the maintenance release (the versions 2.*). If you are using Acceleo 2.7, this is the website where you can locate accurate screencasts. We do not encourage users to start using Acceleo with this version though, and we recommend using the Acceleo 3.x stream instead.

Resources