Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Insert Text @ specific location
Insert Text @ specific location [message #173327] Fri, 13 August 2004 16:47
Eclipse UserFriend
Originally posted by: jai.kejriwal.air2web.com

I have dialogs that allow the input data from the user and then create an
appropriate xml tag
and then add that to the xml file. However, different dialogs generate tags
that correspond to
different sections in the xml file. I want to know how I implement this
functionality.

For example:

Lets say I have two sections in my file

1. setup
I can add tasks that are to be done during setup
2. data
I can add variables w/ a type and value

<program>
<setup>
<task>
<name>login</name>
</task>
<task>
<name>welcome message</name>
</task>
</setup>

<data>
<variable>
<name></name>
<type></type>
<value></value>
</variable>
</data>
</program>

Now I have dialogs for each adding a setup task and a data task. After
acceptin the input from the user
the appropriate tag is generated and needs to be placed in the correct place
in the file. How do I do this?

Thanks in advance.

Jai
Previous Topic:move project from one workspace to a new one
Next Topic:ExceptionInInitializerError when creating a wizard
Goto Forum:
  


Current Time: Wed Jul 16 13:05:38 EDT 2025

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

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

Back to the top