+ FileObject.DEFAULT_LINE_SEPARATOR_ATTR defines file object attribute name to get default line separator.
+ File object can provide default line separator if it differs from
+ System.getProperty("line.separator")
. Call
+ fo.getAttribute(FileObject.DEFAULT_LINE_SEPARATOR_ATTR)
returns string with
+ default line separator. Default line separator will be used by the text
+ editor if saving new content to an initially empty file. Any other code
+ which creates file content programmatically must manually read this
+ property if it cares.
+
FileObject.revert
System.getProperty("line.separator")
. Call
+ * fo.getAttribute(DEFAULT_LINE_SEPARATOR_PROP)
returns string with
+ * default line separator. Default line separator will be used by the text
+ * editor if saving new content to an initially empty file. Any other code
+ * which creates file content programmatically must manually read this
+ * property if it cares.
+ * @since 7.56
+ */
+ public static final String DEFAULT_LINE_SEPARATOR_ATTR = "default-line-separator"; //NOI18N
+
/** generated Serialized Version UID */
static final long serialVersionUID = 85305031923497718L;
--- a/openide.loaders/manifest.mf
+++ a/openide.loaders/manifest.mf
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
OpenIDE-Module: org.openide.loaders
-OpenIDE-Module-Specification-Version: 7.34
+OpenIDE-Module-Specification-Version: 7.35
OpenIDE-Module-Localizing-Bundle: org/openide/loaders/Bundle.properties
OpenIDE-Module-Provides: org.netbeans.modules.templates.v1_0
OpenIDE-Module-Layer: org/netbeans/modules/openide/loaders/layer.xml
--- a/openide.loaders/nbproject/project.xml
+++ a/openide.loaders/nbproject/project.xml
@@ -122,7 +122,7 @@