This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 15749

Summary: Missing action Indent XML.
Product: xml Reporter: issues@www <issues>
Component: Text-EditAssignee: _ pkuzel <pkuzel>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description issues@www 2001-09-21 10:41:12 UTC
Description: 


Name: xyNNNNNN			Date: 05/11/2001


[FFJ Build 010505 CE , Red Hat Linux 6.2 with JDK 1.3.0] 

On #document: node and in TXT editor's popup menu
want action 'Indent XML'.


======================================================================

Evaluation: 

xxx@xxxx 2001-05-11

It is not implemented now. We have to write a indentation engine and enable
"Reformat code action" or follow old design with improved indentation customizer
(it needs aditional info about documents without DTD).


xxx@xxxx 2001-05-15

Kovi, let xml,tree.io.TreeStreamResult use enhanced IndentSettings.

xxx@xxxx 2001-06-19 Indent action will never be as was in boston. It will be
removed by reformat action in text editor. There is simple reformat action now.
It remove whitespaces after last not whitespace symbol at same line. Indent
engine also keep same column as at previous line.

This indent engine should be in orion improved and document could be indent by
start/end item occurence.

A comment.
Comment 1 Jan Chalupa 2001-11-27 17:38:49 UTC
Target milestone -> 3.3.1.
Comment 2 Jan Chalupa 2001-11-27 17:42:18 UTC
Target milestone -> 3.3.1.
Comment 3 _ lkramolis 2001-11-29 08:32:45 UTC
Classified as enhancement.
Comment 4 _ pkuzel 2002-01-28 12:58:17 UTC
*** Issue 19825 has been marked as a duplicate of this issue. ***
Comment 5 Dennis Daniels 2002-01-28 16:32:30 UTC
a really nice example of a code beautifier is found in htmlkit 
available at chami.com

at bare minimum something like this kind of clean output would be 
nice for the xml indentation

<app:editor class="org.jbrix.gui.app.XPad" id="wizard"
         window.title="%f - wizard">
        <form ref=".">
            <components>
                <textfield ref=".">
                    <caption>Wizard Subject</caption>
                    <help>Give your wizard subject a meaningful 
name.</help>
                </textfield>
                <textfield ref="wizdescription">
                    <caption>wizard description</caption>
                </textfield>
                <textfield ref="wizauthor">
                    <caption>wizard author</caption>
                    <default>Dennis Daniels</default>
                </textfield>
                <textfield ref="wizardsource">
                    <caption>wizard source file</caption>
                    <help>This is where the users will be able to 
access the source of the wizard. 

Use the force, read the source.</help>
                </textfield>
Comment 6 _ pkuzel 2002-06-03 12:26:36 UTC
Let these are considered while planning next release.
Comment 7 Marek Grummich 2002-07-19 16:20:07 UTC
Target milestone was changed from not determined to TBD
Comment 8 _ pkuzel 2002-08-13 17:44:02 UTC
Lowering to P3 in favour of completion 
support. 
Comment 9 _ lkramolis 2002-10-02 10:31:35 UTC

*** This issue has been marked as a duplicate of 22510 ***
Comment 10 dmladek 2004-08-04 16:38:31 UTC
isn't it strange marking this issue as duplicate of issue #22510 
which is subtask of this issue?

Please, see addd.comment in issue #22510

>------- Additional Comments From Petr Kuzel 2002-08-13 13:52 PDT >-------

>Such feature was removed, because it requires 
>hints from user to work properly. We have not 
>yet agreed what minimal set of hints is 
>needed. 
> 
>Subtask of issue 15749.