|
|
|
|
Re: using of own templates [message #83680 is a reply to message #83621] |
Tue, 15 March 2005 14:36 |
Srimanth Messages: 225 Registered: July 2009 |
Senior Member |
|
|
Hello,
Please make sure that all the static final variables are correctly
assigned to the appropriate plugin(BASE_PLUGIN), template
path(TEMPLATE_PATH)and javajet file name(METHOD_TEMPLATE_CLASS_NAME). Do
you find any exceptions in the logs?
Regards,
Sri.
Elena wrote:
> Hello,
>
> I changed it to
>
> methodGenerator="MyDecoder/mydecoder.MyMethodTextGenerator"/ >
>
> But it still does not insert any text. Although this time I just copied
> DefaultMethodTextGenerator.java to MyMethodTextGenerator.java and only
> changed the word "private" to "public" in template
> "DefaultMethodTemplate.javajet".
>
> Did I understand you right: MyDecoder is the name for plugin, mydecoder
> is the name for package?
>
> How can I clear the configuration? (I always started eclipse with the
> option -clear)
>
> Thanks
> Elena
>
>
> Sri Gunturi wrote:
>
>> Hi Elena,
>> Just change that line in the ..ROOT...override to read like:
>
>
>> methodGenerator="my.plugin/my.plugin.package.MyDefaultMethodTextGenerator "/>
>>
>
>
>> And MyDefaultMethodTextGenerator should be picked up.
>> (Clearing the configuration might help if the above didnt make any
>> difference)
>
>
>> Regards,
>> Sri.
>
>
>> Elena wrote:
>>
>>> Hello,
>>>
>>> I would like that VE uses another template for the components.
>>> ------------------------------------------------------------ ---------------
>>>
>>> - I changed DefaultMethodTemplate.javajet to MyMethodTemplate.javajet
>>> and changed a little bit the code.
>>>
>>> - created new class MyMethodTextGenerator.java that is similar to
>>> DefaultMethodTextGenerator.java, only the name of template is
>>> "MyMethodTemplate".
>>>
>>> - in the ..ROOT...override I changed
>
> " org.eclipse.ve.java.core/org.eclipse.ve.internal.java.codege n.util.DefaultMethodTextGenerator "
>
>
>>> to "java:/MyDecoder.MyMethodTextGenerator"
>>>
>>> But I think that the VE cannot find the class MyMethodTextGenerator.
>>> Because it doesn't generate any text.
>>> ------------------------------------------------------------ ---------------
>>>
>>> 1. How is it right to write the path for own plugin?
>>>
>>> 2. I also saw that it is possible to write own .override. How can I
>>> "say to the VE" that he has to take my override-files?
>>>
>>> Thank you very much
>>> Elena
>>>
>
>
|
|
|
|
|
|
Re: using of own templates [message #605879 is a reply to message #83621] |
Tue, 15 March 2005 14:36 |
Srimanth Messages: 225 Registered: July 2009 |
Senior Member |
|
|
Hello,
Please make sure that all the static final variables are correctly
assigned to the appropriate plugin(BASE_PLUGIN), template
path(TEMPLATE_PATH)and javajet file name(METHOD_TEMPLATE_CLASS_NAME). Do
you find any exceptions in the logs?
Regards,
Sri.
Elena wrote:
> Hello,
>
> I changed it to
>
> methodGenerator="MyDecoder/mydecoder.MyMethodTextGenerator"/ >
>
> But it still does not insert any text. Although this time I just copied
> DefaultMethodTextGenerator.java to MyMethodTextGenerator.java and only
> changed the word "private" to "public" in template
> "DefaultMethodTemplate.javajet".
>
> Did I understand you right: MyDecoder is the name for plugin, mydecoder
> is the name for package?
>
> How can I clear the configuration? (I always started eclipse with the
> option -clear)
>
> Thanks
> Elena
>
>
> Sri Gunturi wrote:
>
>> Hi Elena,
>> Just change that line in the ..ROOT...override to read like:
>
>
>> methodGenerator="my.plugin/my.plugin.package.MyDefaultMethodTextGenerator "/>
>>
>
>
>> And MyDefaultMethodTextGenerator should be picked up.
>> (Clearing the configuration might help if the above didnt make any
>> difference)
>
>
>> Regards,
>> Sri.
>
>
>> Elena wrote:
>>
>>> Hello,
>>>
>>> I would like that VE uses another template for the components.
>>> ------------------------------------------------------------ ---------------
>>>
>>> - I changed DefaultMethodTemplate.javajet to MyMethodTemplate.javajet
>>> and changed a little bit the code.
>>>
>>> - created new class MyMethodTextGenerator.java that is similar to
>>> DefaultMethodTextGenerator.java, only the name of template is
>>> "MyMethodTemplate".
>>>
>>> - in the ..ROOT...override I changed
>
> " org.eclipse.ve.java.core/org.eclipse.ve.internal.java.codege n.util.DefaultMethodTextGenerator "
>
>
>>> to "java:/MyDecoder.MyMethodTextGenerator"
>>>
>>> But I think that the VE cannot find the class MyMethodTextGenerator.
>>> Because it doesn't generate any text.
>>> ------------------------------------------------------------ ---------------
>>>
>>> 1. How is it right to write the path for own plugin?
>>>
>>> 2. I also saw that it is possible to write own .override. How can I
>>> "say to the VE" that he has to take my override-files?
>>>
>>> Thank you very much
>>> Elena
>>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03668 seconds