MENU

The new MetaFactory IntelliJ plugin

Reply

The new MetaFactory IntelliJ plugin

At Metafactory we are using the MetaFactory tool continuously for coding our projects. Therefore we think as critically as anyone when it comes to identifying any nuisance that might stand in your way of smooth development. The continuous switching windows between IDE and the MetaFactory application when generating the code is one of those issues. Or ‘was’, because MetaFactory has now been extended with an IntelliJ IDE plugin! This allows you to generate your entire project (or a buildset of your code instructions) from within IntelliJ and view all the debug information in a run window.

Get started with the Plugin

The first prerequisite to using the plugin is to have the MetaFactory application installed as well as a licence for it (which you can try out for free). Documentation that will guide you through this process can be found here. Now assuming that you’ve completed all these steps we’ll be ready to go use the plugin after just the few following steps:

  1. The plugin comes with the MetaFactory installation that you have received at this point. Now go to the IntelliJ ‘Settings’ (under ‘File’) and go to the plugins tab, click ‘install plugin from disk’ and navigate to the zip file. This will install the plugin. You will have to restart IntelliJ to start using it.
  2. Some configuration is required within IntelliJ
    1. Go to the IntelliJ ‘Tools’ menu –> MetaFactory –> Configure MetaFactory Library. Now use the navigator to point to the folder of the MetaFactory installation. ‘Schemas and Templates’ which is located in the same Tools menu now also points to this location.
    2. Go to ‘Project Structure under the ‘File’ menu, view the ‘Modules’ tab and make sure that your directory of patterns is present as a module. If not, add it.
    3. Go to the context menu of your pattern directory and set it as source root if it isn’t already.

As of now, you should be able to see the MetaFactory tool window and if not you can turn it on under ‘View –> Tool Windows’.

mf-intellij-screen

Done!

From within the tool window you are able to generate your entire project, or a subset of it by first selecting a buildset . All the logs that would normally be in the MetaFactory console can now be viewed from the IDEA run window. That’s it, enjoy the now even faster coding with MetaFactory!



Leave a comment