Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Calling JET Transform from RCP application
Calling JET Transform from RCP application [message #10113] Fri, 06 April 2007 16:34 Go to next message
Eclipse UserFriend
Originally posted by: f.bighelli.diginext.fr

Hi,

I would like to execute a JET transformation in my RCP application.
I try it using method JET2Platform.runTransformOnString. It didn't work...
(exception with message "null" ?)

When I get descriptor of my template, it doesn't find modelLoader and
modelExtension. i think this is the problem.

code:
IJETBundleDescriptor
descriptor=JET2Platform.getJETBundleManager().getDescriptor( "mytemplates");

String loaderId = descriptor.getModelLoaderId();
String fileType = descriptor.getModelExtension();

descriptor isn't null and loaderId and fileType are always null;

Does anyone has an idea?

Thanks,
Frederic
Re: Calling JET Transform from RCP application [message #10136 is a reply to message #10113] Mon, 09 April 2007 16:23 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Frederic:

Sorry. At this point, JET doesn't run in RCP - it has a single monolithic
plug-in (org.eclipse.jet) which has dependencies on the Eclipse platform and
the JDT.

However, I am working on refactoring the core engine to be more modular.

One of the key areas I don't have an answer for are the JET Workspace tags.
Right now, they require org.eclipse.core.resources, which is not part of RCP
(although you can add it). My question is, does JET need a similar set of
tags that are dependent on only java.io?

Paul

"Frederic" <f.bighelli@diginext.fr> wrote in message
news:8355237d676a45138f2822e599430252$1@www.eclipse.org...
> Hi,
>
> I would like to execute a JET transformation in my RCP application.
> I try it using method JET2Platform.runTransformOnString. It didn't work...
> (exception with message "null" ?)
>
> When I get descriptor of my template, it doesn't find modelLoader and
> modelExtension. i think this is the problem.
>
> code:
> IJETBundleDescriptor
> descriptor=JET2Platform.getJETBundleManager().getDescriptor( "mytemplates");
>
> String loaderId = descriptor.getModelLoaderId();
> String fileType = descriptor.getModelExtension();
>
> descriptor isn't null and loaderId and fileType are always null;
>
> Does anyone has an idea?
>
> Thanks,
> Frederic
>
>
>
>
Re: Calling JET Transform from RCP application [message #10175 is a reply to message #10136] Tue, 10 April 2007 09:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: f.bighelli.diginext.fr

Thanks for your response.

Do you have a dead line for the first refactored version of JET2?

For your question,i suggest yes for a subset (tag copyfile,file and
folder) of JET Workspace in particular case where the target environment
is outside Eclipse
environment (this is my case and... sometimes there is no other
possibility).
Re: Calling JET Transform from RCP application [message #11232 is a reply to message #10175] Tue, 10 April 2007 12:08 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Frederic:

Thanks for the feedback.

I cannot guarantee that the refactoring will be completed by this June's
release - in particular, it is unlikely I'll have tag libraries that will
work outside of a full workbench.

The JET 0.8.0M6 build has a new plug-in, org.eclipse.jet.core, which is
largely free of Eclipse dependencies (except for org.eclipse.text - I will
have to remove some deprecated methods to eliminate that). But,
org.eclipse.jet.core does not yet include any tag library implementations,
nor does it include equivalents to JET2Platform.runTransformXXX().

Paul

"Frederic" <f.bighelli@diginext.fr> wrote in message
news:96be233fbcd1d8b51996c99af133c4b8$1@www.eclipse.org...
> Thanks for your response.
>
> Do you have a dead line for the first refactored version of JET2?
>
> For your question,i suggest yes for a subset (tag copyfile,file and
> folder) of JET Workspace in particular case where the target environment
> is outside Eclipse
> environment (this is my case and... sometimes there is no other
> possibility).
>
>
Previous Topic:JET2 - multiple input models
Next Topic:Re: Jet 2.0?
Goto Forum:
  


Current Time: Fri Apr 19 21:10:40 GMT 2024

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

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

Back to the top