Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Text File Creation Wizard
Text File Creation Wizard [message #267638] Wed, 18 August 2004 17:05 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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?
>
>
>
Previous Topic:From an Image object to an image file
Next Topic:Having trouble with setting appropriate ratios when building a perspective
Goto Forum:
  


Current Time: Sun May 11 07:11:54 EDT 2025

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

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

Back to the top