diff options
author | ustieber | 2011-09-23 09:48:10 +0000 |
---|---|---|
committer | ustieber | 2011-09-23 09:48:10 +0000 |
commit | 3d9a9333017719e7c39fdc9a94ca45f3b8c3814d (patch) | |
tree | 7558c11d7a08f01ba19d2f6e9753c83fd72bb2f2 | |
parent | a269093f908576d225fdfe91cf7f76e2c9accc74 (diff) | |
download | org.eclipse.tcf-3d9a9333017719e7c39fdc9a94ca45f3b8c3814d.tar.gz org.eclipse.tcf-3d9a9333017719e7c39fdc9a94ca45f3b8c3814d.tar.xz org.eclipse.tcf-3d9a9333017719e7c39fdc9a94ca45f3b8c3814d.zip |
Target Explorer: Fix layout in properties file persistence storage
-rw-r--r-- | target_explorer/plugins/org.eclipse.tm.te.core.persistence/src/org/eclipse/tm/te/core/persistence/properties/PropertiesFilePersistenceDelegate.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tm.te.core.persistence/src/org/eclipse/tm/te/core/persistence/properties/PropertiesFilePersistenceDelegate.java b/target_explorer/plugins/org.eclipse.tm.te.core.persistence/src/org/eclipse/tm/te/core/persistence/properties/PropertiesFilePersistenceDelegate.java index a63b0633a..07a178cc9 100644 --- a/target_explorer/plugins/org.eclipse.tm.te.core.persistence/src/org/eclipse/tm/te/core/persistence/properties/PropertiesFilePersistenceDelegate.java +++ b/target_explorer/plugins/org.eclipse.tm.te.core.persistence/src/org/eclipse/tm/te/core/persistence/properties/PropertiesFilePersistenceDelegate.java @@ -135,6 +135,9 @@ public class PropertiesFilePersistenceDelegate extends AbstractPersistenceDelega // If the child key list is not empty, write the section
if (!childKeys.isEmpty()) {
+ // Write a new line except it is the "core" section
+ if (!"core".equals(section)) writer.newLine(); //$NON-NLS-1$
+
// Write the header
writer.write("[" + section.trim() + "]"); //$NON-NLS-1$ //$NON-NLS-2$
writer.newLine();
@@ -157,8 +160,6 @@ public class PropertiesFilePersistenceDelegate extends AbstractPersistenceDelega // If there are map type values, write them now
if (!childMapKeys.isEmpty()) {
- writer.newLine();
-
for (String key : childMapKeys) {
// Calculate the section name
String newSection = "core".equals(section) ? key.trim() : section + "." + key.trim(); //$NON-NLS-1$ //$NON-NLS-2$
|