Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston2010-11-27 00:17:21 +0000
committerJeff Johnston2010-11-27 00:17:21 +0000
commit9dfc8db50fc02422a7d6ac2cdbd692153b5fb7c8 (patch)
tree89bc5c2550b9a952d46f673da46d9bf13233b029 /changelog/org.eclipse.linuxtools.changelog.core
parentca952b636a14a64d36eba61e246e4ee3572a0872 (diff)
downloadorg.eclipse.linuxtools-9dfc8db50fc02422a7d6ac2cdbd692153b5fb7c8.tar.gz
org.eclipse.linuxtools-9dfc8db50fc02422a7d6ac2cdbd692153b5fb7c8.tar.xz
org.eclipse.linuxtools-9dfc8db50fc02422a7d6ac2cdbd692153b5fb7c8.zip
2010-11-26 Jeff Johnston <jjohnstn@redhat.com>
Bug #331244 * src/org/eclipse/linuxtools/changelog/core/formatters/GNUFormat.java (mergeChangelog): Add defaultContent for last entry which may contain "New file" or "Removed file".
Diffstat (limited to 'changelog/org.eclipse.linuxtools.changelog.core')
-rw-r--r--changelog/org.eclipse.linuxtools.changelog.core/ChangeLog6
-rw-r--r--changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/formatters/GNUFormat.java4
2 files changed, 8 insertions, 2 deletions
diff --git a/changelog/org.eclipse.linuxtools.changelog.core/ChangeLog b/changelog/org.eclipse.linuxtools.changelog.core/ChangeLog
index 283a1e156b..695280f153 100644
--- a/changelog/org.eclipse.linuxtools.changelog.core/ChangeLog
+++ b/changelog/org.eclipse.linuxtools.changelog.core/ChangeLog
@@ -1,3 +1,9 @@
+2010-11-26 Jeff Johnston <jjohnstn@redhat.com>
+
+ Bug #331244
+ * src/org/eclipse/linuxtools/changelog/core/formatters/GNUFormat.java (mergeChangelog): Add
+ defaultContent for last entry which may contain "New file" or "Removed file".
+
2010-10-28 Alexander Kurtakov <akurtako@redhat.com>
* META-INF/MANIFEST.MF: Remove LazyStart obsoleted by ActivationPolicy.
diff --git a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/formatters/GNUFormat.java b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/formatters/GNUFormat.java
index d2b474cf76..17b0c35263 100644
--- a/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/formatters/GNUFormat.java
+++ b/changelog/org.eclipse.linuxtools.changelog.core/src/org/eclipse/linuxtools/changelog/core/formatters/GNUFormat.java
@@ -188,11 +188,11 @@ public class GNUFormat implements IFormatterChangeLogContrib {
if (changelog_doc.getLength() > 0)
changelog_doc.replace(0, 0, "\n\n"); //$NON-NLS-1$
changelog_doc.replace(0, 0, dateLine + TAB + "* " + fileDetail // $NON-NLS-1$
- + functionSpacer+function+functionSpacer);
+ + functionSpacer+function+functionSpacer+defaultContent);
ITextEditor edit = (ITextEditor) changelog;
edit.selectAndReveal(dateLine.length() + fileDetail.length()
- + function.length() + functionSpacer.length()*2 + 3, 0);
+ + function.length() + functionSpacer.length()*2 + 3 + defaultContent.length(), 0);
} catch (BadLocationException e) {
e.printStackTrace();

Back to the top