Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Re: ImportManager and JET2
Re: ImportManager and JET2 [message #2666] Tue, 06 February 2007 16:44 Go to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Tim,

JET2 has moved to the M2T project, so questions about it are best asked
on the eclipse.modeling.m2t newsgroup, which I've added to the "to"
list. I believe that Paul is away at a conference this week, and since
I don't know the answer, an answer is might take a little while...


Tim wrote:
> Hi,
>
> I'm using JET2 with the <java:importsLocation> tag. I'm also using
> statements like genOperation.getThrows()
>
> Can someone tell me how to link the ImportManager instance linked to
> the GenModel with the instance created by the importsLocation tag?
> They don't seem to be consistent.
>
> Regards,
>
> Tim
>
Re: ImportManager and JET2 [message #2694 is a reply to message #2666] Tue, 06 February 2007 18:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tim.forgenet.co.uk

This works, not sure it's correct:

<java:importsLocation package="{$classPackageName}"/>

<%
genClass.getGenPackage().getGenModel().setImportManager(Java ActionsUtil.getImportManager(out));
%>

Tim
Re: ImportManager and JET2 [message #2714 is a reply to message #2694] Tue, 06 February 2007 19:01 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Tim,

That looks like a good approach. It should definitely work in term of
convincing the GenModel and everything under it to use this instance...


Tim Johnson wrote:
> This works, not sure it's correct:
>
> <java:importsLocation package="{$classPackageName}"/>
>
> <%
> genClass.getGenPackage().getGenModel().setImportManager(Java ActionsUtil.getImportManager(out));
> %>
>
> Tim
>
Previous Topic:[Announce] Updated proposal and creation review
Next Topic:[Announce] EclipseCon 2007 Registration
Goto Forum:
  


Current Time: Fri Mar 29 00:53:47 GMT 2024

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

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

Back to the top