Text File Creation Wizard [message #267638] |
Wed, 18 August 2004 17:05  |
Eclipse User |
|
|
|
Originally posted by: jai.kejriwal.air2web.com
Based on a file creation wizard, I want to generate a file that has
some text but uses values from various fields in the wizard.
For example:
Template:
Dear ($name),
I would like to invite you on ($date)....and so on.
Thanks,
($sender)
The $name, $date and $sender fields will be accepted in the wizard. I want
these values to be subsituted in the text of the file that I generate. How
can I do
this in Eclipse?
|
|
|
Re: Text File Creation Wizard [message #267704 is a reply to message #267638] |
Thu, 19 August 2004 04:12  |
Eclipse User |
|
|
|
You could use Templates. In your wizard, you would have to store the
entered values into the TemplateContext, so they can be picked up by the
TemplateVariableResolver when filling in the TemplateVariables.
To get going, have a look at what TemplateProposal.apply does to insert
a user-selected template.
HTH, tom
Jai Kejriwal wrote:
> Based on a file creation wizard, I want to generate a file that has
> some text but uses values from various fields in the wizard.
>
> For example:
>
> Template:
>
> Dear ($name),
>
> I would like to invite you on ($date)....and so on.
>
> Thanks,
>
> ($sender)
>
> The $name, $date and $sender fields will be accepted in the wizard. I want
> these values to be subsituted in the text of the file that I generate. How
> can I do
> this in Eclipse?
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03846 seconds