Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Re: Jet Editor and Argument variable
Re: Jet Editor and Argument variable [message #38424] Thu, 03 January 2008 14:08 Go to next message
Eclipse User
Originally posted by: merks.ca.ibm.com

Ian,

I have similar problems in trying to use the JET editor for EMF's
templates. The older one used to work. It's best to ask about this on
the M2T newsgroup which I added to the "to" list of the reply. EMF's
templates rely on referring to "stringBuffer" as well, and that's not
working either. :-(


Ian Bull wrote:
> Hi all,
>
> I just tried the EMFT Jet editor for editing a javajet file. I have
> done very little JET work before, but I ran through the tutorials on
> Developer works and it seems pretty powerful.
>
> I use the arguments variable (the one passed to generate method).
> However, the JET editor complains a bit about this:
>
>
> <%@ jet
> package="com.ibm.pdc.example.jet.gen"
> class="GenDAO"
> skeleton="custom.skeleton"
> imports="java.util.* "
> %>
>
> <% String user = (String)argument; %>
>
> It complains because "argument cannot be resolved".
>
> Is there an easy way to get around this error message?
>
> Cheers,
> Ian
Re: Jet Editor and Argument variable [message #38456 is a reply to message #38424] Thu, 03 January 2008 17:50 Go to previous messageGo to next message
Eclipse User
Originally posted by: irbull.cs.uvic.ca

Also, it seems that when I open a file using the EMFT Jet Editor, it
automatically compiles my template using JET2 (even though it is a Jet1
template). If I close the editor, and run the "compile template" by
hand, then it works.

Is there a setting to say which Jet Editor I wish to use?

cheers,
ian

Ed Merks wrote:
> Ian,
>
> I have similar problems in trying to use the JET editor for EMF's
> templates. The older one used to work. It's best to ask about this on
> the M2T newsgroup which I added to the "to" list of the reply. EMF's
> templates rely on referring to "stringBuffer" as well, and that's not
> working either. :-(
>
>
> Ian Bull wrote:
>> Hi all,
>>
>> I just tried the EMFT Jet editor for editing a javajet file. I have
>> done very little JET work before, but I ran through the tutorials on
>> Developer works and it seems pretty powerful.
>>
>> I use the arguments variable (the one passed to generate method).
>> However, the JET editor complains a bit about this:
>>
>>
>> <%@ jet
>> package="com.ibm.pdc.example.jet.gen"
>> class="GenDAO"
>> skeleton="custom.skeleton"
>> imports="java.util.* "
>> %>
>>
>> <% String user = (String)argument; %>
>>
>> It complains because "argument cannot be resolved".
>>
>> Is there an easy way to get around this error message?
>>
>> Cheers,
>> Ian
Re: Jet Editor and Argument variable [message #38555 is a reply to message #38456] Fri, 04 January 2008 13:22 Go to previous messageGo to next message
Eclipse User
Originally posted by: irbull.cs.uvic.ca

I think I may have figured it out.

In preferences (EMFT JET Transformations -> Compiler options) I had JET2
selected. If I change this to JET1, the editor seems to work (at least
for the arguments). Hopefully that works for you too Ed.

Cheers,
Ian

Ian Bull wrote:
> Also, it seems that when I open a file using the EMFT Jet Editor, it
> automatically compiles my template using JET2 (even though it is a Jet1
> template). If I close the editor, and run the "compile template" by
> hand, then it works.
>
> Is there a setting to say which Jet Editor I wish to use?
>
> cheers,
> ian
>
> Ed Merks wrote:
>> Ian,
>>
>> I have similar problems in trying to use the JET editor for EMF's
>> templates. The older one used to work. It's best to ask about this
>> on the M2T newsgroup which I added to the "to" list of the reply.
>> EMF's templates rely on referring to "stringBuffer" as well, and
>> that's not working either. :-(
>>
>>
>> Ian Bull wrote:
>>> Hi all,
>>>
>>> I just tried the EMFT Jet editor for editing a javajet file. I have
>>> done very little JET work before, but I ran through the tutorials on
>>> Developer works and it seems pretty powerful.
>>>
>>> I use the arguments variable (the one passed to generate method).
>>> However, the JET editor complains a bit about this:
>>>
>>>
>>> <%@ jet
>>> package="com.ibm.pdc.example.jet.gen"
>>> class="GenDAO"
>>> skeleton="custom.skeleton"
>>> imports="java.util.* "
>>> %>
>>>
>>> <% String user = (String)argument; %>
>>>
>>> It complains because "argument cannot be resolved".
>>>
>>> Is there an easy way to get around this error message?
>>>
>>> Cheers,
>>> Ian
Re: Jet Editor and Argument variable [message #38588 is a reply to message #38555] Sat, 05 January 2008 10:31 Go to previous messageGo to next message
Eclipse User
Originally posted by: merks.ca.ibm.com

Ian,

I would have never guessed. That did the trick though. Thanks!


Ian Bull wrote:
> I think I may have figured it out.
>
> In preferences (EMFT JET Transformations -> Compiler options) I had
> JET2 selected. If I change this to JET1, the editor seems to work (at
> least for the arguments). Hopefully that works for you too Ed.
>
> Cheers,
> Ian
>
> Ian Bull wrote:
>> Also, it seems that when I open a file using the EMFT Jet Editor, it
>> automatically compiles my template using JET2 (even though it is a
>> Jet1 template). If I close the editor, and run the "compile
>> template" by hand, then it works.
>>
>> Is there a setting to say which Jet Editor I wish to use?
>>
>> cheers,
>> ian
>>
>> Ed Merks wrote:
>>> Ian,
>>>
>>> I have similar problems in trying to use the JET editor for EMF's
>>> templates. The older one used to work. It's best to ask about this
>>> on the M2T newsgroup which I added to the "to" list of the reply.
>>> EMF's templates rely on referring to "stringBuffer" as well, and
>>> that's not working either. :-(
>>>
>>>
>>> Ian Bull wrote:
>>>> Hi all,
>>>>
>>>> I just tried the EMFT Jet editor for editing a javajet file. I
>>>> have done very little JET work before, but I ran through the
>>>> tutorials on Developer works and it seems pretty powerful.
>>>>
>>>> I use the arguments variable (the one passed to generate method).
>>>> However, the JET editor complains a bit about this:
>>>>
>>>>
>>>> <%@ jet
>>>> package="com.ibm.pdc.example.jet.gen"
>>>> class="GenDAO"
>>>> skeleton="custom.skeleton"
>>>> imports="java.util.* "
>>>> %>
>>>>
>>>> <% String user = (String)argument; %>
>>>>
>>>> It complains because "argument cannot be resolved".
>>>>
>>>> Is there an easy way to get around this error message?
>>>>
>>>> Cheers,
>>>> Ian
Re: Jet Editor and Argument variable [message #38712 is a reply to message #38588] Mon, 07 January 2008 09:29 Go to previous messageGo to next message
Paul Elder is currently offline Paul Elder
Messages: 849
Registered: July 2009
Senior Member
Ed & Ian:

I'll have Joel take a look at this. IMHO, you shouldn't have to go through
such gyrations.

Paul

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:flo7p6$b5b$1@build.eclipse.org...
> Ian,
>
> I would have never guessed. That did the trick though. Thanks!
>
>
> Ian Bull wrote:
>> I think I may have figured it out.
>>
>> In preferences (EMFT JET Transformations -> Compiler options) I had JET2
>> selected. If I change this to JET1, the editor seems to work (at least
>> for the arguments). Hopefully that works for you too Ed.
>>
>> Cheers,
>> Ian
>>
>> Ian Bull wrote:
>>> Also, it seems that when I open a file using the EMFT Jet Editor, it
>>> automatically compiles my template using JET2 (even though it is a Jet1
>>> template). If I close the editor, and run the "compile template" by
>>> hand, then it works.
>>>
>>> Is there a setting to say which Jet Editor I wish to use?
>>>
>>> cheers,
>>> ian
>>>
>>> Ed Merks wrote:
>>>> Ian,
>>>>
>>>> I have similar problems in trying to use the JET editor for EMF's
>>>> templates. The older one used to work. It's best to ask about this on
>>>> the M2T newsgroup which I added to the "to" list of the reply. EMF's
>>>> templates rely on referring to "stringBuffer" as well, and that's not
>>>> working either. :-(
>>>>
>>>>
>>>> Ian Bull wrote:
>>>>> Hi all,
>>>>>
>>>>> I just tried the EMFT Jet editor for editing a javajet file. I have
>>>>> done very little JET work before, but I ran through the tutorials on
>>>>> Developer works and it seems pretty powerful.
>>>>>
>>>>> I use the arguments variable (the one passed to generate method).
>>>>> However, the JET editor complains a bit about this:
>>>>>
>>>>>
>>>>> <%@ jet
>>>>> package="com.ibm.pdc.example.jet.gen"
>>>>> class="GenDAO"
>>>>> skeleton="custom.skeleton"
>>>>> imports="java.util.* "
>>>>> %>
>>>>>
>>>>> <% String user = (String)argument; %>
>>>>>
>>>>> It complains because "argument cannot be resolved".
>>>>>
>>>>> Is there an easy way to get around this error message?
>>>>>
>>>>> Cheers,
>>>>> Ian
Re: Jet Editor and Argument variable [message #42920 is a reply to message #38712] Tue, 11 March 2008 06:23 Go to previous message
Felix Dorner is currently offline Felix Dorner
Messages: 675
Registered: July 2009
Senior Member
Hey,

I updated the Wiki Site (Articles Section) to give that hint to new
users. As I had this problem with the 0.9 version I gave this version as
a reference...

Felix
Previous Topic:The problem of <c:dump/> tag in jet2
Next Topic:Re: ws:file in JET2
Goto Forum:
  


Current Time: Wed Aug 27 19:26:25 EDT 2014

Powered by FUDForum. Page generated in 0.01730 seconds