Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2004-05-26 18:46:01 +0000
committerJean Michel-Lemieux2004-05-26 18:46:01 +0000
commit10f183a3bd1dac25e90534f276488d0e92019b0c (patch)
tree47d00c07bf967ee7127b38b260636578d3baf6b5 /bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CommitCommentArea.java
parentfab98a62740867b4152b479dc13b7a573d391b31 (diff)
downloadeclipse.platform.team-10f183a3bd1dac25e90534f276488d0e92019b0c.tar.gz
eclipse.platform.team-10f183a3bd1dac25e90534f276488d0e92019b0c.tar.xz
eclipse.platform.team-10f183a3bd1dac25e90534f276488d0e92019b0c.zip
Bug 62796 Multi-line comment in Commit set
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CommitCommentArea.java')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CommitCommentArea.java24
1 files changed, 1 insertions, 23 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CommitCommentArea.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CommitCommentArea.java
index cf30a2810..82e594a61 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CommitCommentArea.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CommitCommentArea.java
@@ -112,7 +112,7 @@ public class CommitCommentArea extends DialogArea {
// populate the previous comment list
for (int i = 0; i < comments.length; i++) {
- previousCommentsCombo.add(flattenText(comments[i]));
+ previousCommentsCombo.add(HistoryView.flattenText(comments[i]));
}
// We don't want to have an initial selection
@@ -132,28 +132,6 @@ public class CommitCommentArea extends DialogArea {
}
}
- /*
- * Flatten the text in the multiline comment
- * @param string
- * @return String
- */
- private String flattenText(String string) {
- StringBuffer buffer = new StringBuffer(string.length() + 20);
- boolean skipAdjacentLineSeparator = true;
- for (int i = 0; i < string.length(); i++) {
- char c = string.charAt(i);
- if (c == '\r' || c == '\n') {
- if (!skipAdjacentLineSeparator)
- buffer.append(Policy.bind("separator")); //$NON-NLS-1$
- skipAdjacentLineSeparator = true;
- } else {
- buffer.append(c);
- skipAdjacentLineSeparator = false;
- }
- }
- return buffer.toString();
- }
-
/**
* Method signalCtrlEnter.
*/

Back to the top