Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Text File Creation Wizard
Text File Creation Wizard [message #267638] Wed, 18 August 2004 21: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 08:12 Go to previous message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
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: Sat Jul 27 16:42:03 GMT 2024

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

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

Back to the top