You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by lk...@apache.org on 2019/12/27 16:05:01 UTC

[netbeans] branch master updated: [NETBEANS-3638] Add Indenting options for XML

This is an automated email from the ASF dual-hosted git repository.

lkishalmi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 29a1ad9  [NETBEANS-3638] Add Indenting options for XML
29a1ad9 is described below

commit 29a1ad932472111195fb9af4d086b523b1e8f257
Author: Laszlo Kishalmi <la...@gmail.com>
AuthorDate: Wed Dec 25 22:47:53 2019 -0800

    [NETBEANS-3638] Add Indenting options for XML
---
 .../netbeans/modules/xml/text/resources/XMLExampleIndent  |  8 ++++++++
 .../org/netbeans/modules/xml/text/resources/mf-layer.xml  | 15 +++++++++++++++
 nbbuild/rat-exclusions.txt                                |  1 +
 3 files changed, 24 insertions(+)

diff --git a/ide/xml.text/src/org/netbeans/modules/xml/text/resources/XMLExampleIndent b/ide/xml.text/src/org/netbeans/modules/xml/text/resources/XMLExampleIndent
new file mode 100644
index 0000000..f688910
--- /dev/null
+++ b/ide/xml.text/src/org/netbeans/modules/xml/text/resources/XMLExampleIndent
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<!--  Comment  -->
+<!DOCTYPE filesystem "-//NetBeans">
+<folder name="Actions">
+    <folder name="Window">
+        <![CDATA[ cdata text ]]>
+    </folder>
+</folder>
diff --git a/ide/xml.text/src/org/netbeans/modules/xml/text/resources/mf-layer.xml b/ide/xml.text/src/org/netbeans/modules/xml/text/resources/mf-layer.xml
index 6de64c2..162f578 100644
--- a/ide/xml.text/src/org/netbeans/modules/xml/text/resources/mf-layer.xml
+++ b/ide/xml.text/src/org/netbeans/modules/xml/text/resources/mf-layer.xml
@@ -319,6 +319,21 @@
             </folder>
             <folder name="text">
                 <file name="xml" url="XMLExample"/>
+                <file name="xml-indent" url="XMLExampleIndent"/>
+            </folder>
+        </folder>
+        <folder name="Editor">
+            <folder name="Formatting">
+                <folder name="text">
+                    <folder name="xml">
+                        <file name="TabsAndIndents.instance">
+                            <attr name="instanceOf" stringvalue="org.netbeans.modules.options.editor.spi.PreferencesCustomizer$Factory"/>
+                            <attr name="instanceCreate" methodvalue="org.netbeans.modules.options.editor.spi.CustomizerFactories.createDefaultTabsAndIndentsCustomizerFactory"/>
+                            <attr name="previewTextFile" stringvalue="OptionsDialog/PreviewExamples/text/xml-indent"/>
+                            <attr name="position" intvalue="100"/>
+                        </file>
+                    </folder>
+                </folder>
             </folder>
         </folder>
     </folder>
diff --git a/nbbuild/rat-exclusions.txt b/nbbuild/rat-exclusions.txt
index 851f61c..8c12e7c 100644
--- a/nbbuild/rat-exclusions.txt
+++ b/nbbuild/rat-exclusions.txt
@@ -195,4 +195,5 @@ ide/languages.yaml/src/org/netbeans/modules/languages/yaml/*.yml
 java/spring.beans/src/org/netbeans/modules/spring/beans/resources/templates/*.template
 ide/xml.text/src/org/netbeans/modules/xml/text/resources/DTDExample
 ide/xml.text/src/org/netbeans/modules/xml/text/resources/XMLExample
+ide/xml.text/src/org/netbeans/modules/xml/text/resources/XMLExampleIndent
 ide/properties.syntax/src/org/netbeans/modules/properties/syntax/PropertiesExample


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists