Bug 204975 - Auto-insertion of end tags for XML elements
Summary: Auto-insertion of end tags for XML elements
Status: CLOSED DUPLICATE of bug 265364
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xml (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nitin Dahyabhai CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: helpwanted, needinfo
Depends on:
Blocks:
 
Reported: 2007-09-29 01:46 EDT by Behrang Saeedzadeh CLA
Modified: 2009-12-14 15:00 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Behrang Saeedzadeh CLA 2007-09-29 01:46:38 EDT
Obviously, every XML element that starts with a start-tag (http://www.w3.org/TR/REC-xml/#sec-starttags), i.e it is not an empty tag, has an end-tag, and it is appropriate to auto-insert end-tags when the user closes an open-tag.

For example, if I enter the following snippet character by character:

 <bean id="anId" class="aClass">

Eclipse should automatically insert

 </bean>

for me. Currently, if after entering

 <bean id="anId" class="aClass">

I write

 </

Eclipse auto-completes the end tag to

 </bean>

which is nice, but could be further improved. Eclipse could automatically insert

 </bean>

after I had typed the ending ">" in

 <bean id="anId" class="aClass">
Comment 1 Kevin McGuire CLA 2007-10-03 23:09:10 EDT
Is this web tools you encountered this in?
Comment 2 Behrang Saeedzadeh CLA 2007-10-03 23:43:55 EDT
(In reply to comment #1)
> Is this web tools you encountered this in?
> 

It is Eclipse Europa with WebTools, etc. but I just created a new xml file in a Java project so I am not sure if it is related to WebTools or not. It is related to the XML Editor IMHO.
Comment 3 Kevin McGuire CLA 2007-10-04 12:32:59 EDT
I'm not sure how much common support there is for xml tag management.  If I try this in just a base Eclipse (no webtools etc) in a java project I don't get any completion.

Moving to Webtools.
Comment 4 Amy Wu CLA 2007-10-04 15:11:52 EDT
In the past, people have complained about the auto-insertion and wanted it off (like bug 144313) It's nice to see someone that wants it more.

If/when we fix this enhancement, there will need to be a preference of some sort for this so that we accommadate the people that want this and the people that don't.
Comment 5 David Carver CLA 2007-12-07 20:55:35 EST
This is pretty common functionality across XML editors.   The difference in usage is usually where the editor is being used and why.   If you are working with a standard like DITA, DOCBOOK or even a B2B specification like STAR, OAGi, UBL, ACCORD, HRXML, etc.  it's pretty handy to have the autocompletion.

Editors like Stylus Studio, Oxygen XML, and XML Spy already have this functionality.
Comment 6 Nick Sandonato CLA 2009-12-14 15:00:20 EST
Hi. Thanks for your enhancement request. I think this functionality was covered by the implementation of bug 265364 in WTP 3.1.

*** This bug has been marked as a duplicate of bug 265364 ***