[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.emft] Re: [XTEXT] generators and includes

Hi Patrick,

the easiest way is to package a complete distribution for your clients, but this may be somewhat oversized depending on the number of your plugins and their dependencies. Another solution is a feature, that contains the Xtext runtime feature. Clients who install your feature will automatically get the Xtext runtime layer without all this UI stuff like "new Xtext project".

I think their are various tutorials out there about how to package plugins into a product or whatever you like. At the moment, there is no step by step tutorial available as part of the Xtext documentation, but we are working on something like this. See here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=279477

The WorkflowAntTask is somewhat complicated because it does not use the classloader from the environment (even if you can pass it). Therefore it's most likely that you'll have to wait for the 0.8.0M2 of EMFT before you can use it in an OSGi environment, as we changed the packaging recently to ease the usage of this task from the very same OSGi instance. Maybe someone from the EMFT newsgroup can jump in and explain this a little bit more detailled? The short answer is most probably: If you can avoid to use this AntTask from within the OSGi environment, you should try to do so.

Hope that helps,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 25.08.09 01:21, schrieb Patrick Conrad:
Thanks guys, I think I got that part. I'm trying to figure out how to
deploy the plugin. Unfortunately, I'm new to eclipse development, so
this is turning out to be more of a project than I expected.

First, I need to create a button or context menu that will compile that
file using the generator. I've figured out how to make a context menu,
but I'm having a hard time attaching the generator. Even though I have
the full emf xtext sdk installed, it can't find
org.eclipse.emf.mwe.core.ant.WorkflowAntTask. I also tried to install
the mwe specifically, but it doesn't find it. (I'm trying to follow
http://wiki.eclipse.org/MWE_oaw4.3_doc to run the mwe from my menu
callback)

Additionally, I'm having a hard time figuring out how to set up all the
paths between the mwe and expand files in the project and my custom
files running through the plugin, especially given that some of the
expand portions need uris.

Along those lines, is there a standard way to package up the plugins?
Will my users have to separately install xtext and the other dependencies.

It just seems like these should be very standard things that many users
of xtext would need to do, and I would be very appreciative if anyone
can explain how they're done.