diff options
author | Michael Valenta | 2003-01-21 20:46:16 +0000 |
---|---|---|
committer | Michael Valenta | 2003-01-21 20:46:16 +0000 |
commit | 7ccd46f34d3c099d02f2dd086ead5baafd0331d0 (patch) | |
tree | 74f432d79490dcf679e200d080ac761f5582b2e5 | |
parent | a246a0eaceaa10431900c7be4bdbb2799a85b2e6 (diff) | |
download | eclipse.platform.team-7ccd46f34d3c099d02f2dd086ead5baafd0331d0.tar.gz eclipse.platform.team-7ccd46f34d3c099d02f2dd086ead5baafd0331d0.tar.xz eclipse.platform.team-7ccd46f34d3c099d02f2dd086ead5baafd0331d0.zip |
29916: Latest release comment not used
-rw-r--r-- | bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CommitCommentArea.java | 17 |
1 files changed, 13 insertions, 4 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 f23a749fd..3a46de78a 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 @@ -90,11 +90,20 @@ public class CommitCommentArea extends DialogArea { } }); - label = new Label(composite, SWT.NULL); + Composite chooseCommentComposite = createComposite(composite, 2); + + Composite previousCommentComposite = createComposite(chooseCommentComposite, 1); + data = new GridData(); + data.verticalAlignment = GridData.FILL; + data.horizontalAlignment = GridData.FILL; + data.grabExcessHorizontalSpace = true; + previousCommentComposite.setLayoutData(data); + + label = new Label(previousCommentComposite, SWT.NULL); label.setLayoutData(new GridData()); label.setText(Policy.bind("ReleaseCommentDialog.choosePrevious")); //$NON-NLS-1$ - previousCommentsCombo = new Combo(composite, SWT.READ_ONLY); + previousCommentsCombo = new Combo(previousCommentComposite, SWT.READ_ONLY); data = new GridData(GridData.FILL_HORIZONTAL); data.widthHint = IDialogConstants.ENTRY_FIELD_WIDTH; previousCommentsCombo.setLayoutData(data); @@ -106,7 +115,7 @@ public class CommitCommentArea extends DialogArea { } }); - Button clear = createButton(composite, Policy.bind("ReleaseCommentDialog.clearTextArea"), GridData.VERTICAL_ALIGN_BEGINNING); //$NON-NLS-1$ + Button clear = createButton(chooseCommentComposite, Policy.bind("ReleaseCommentDialog.clearTextArea"), GridData.VERTICAL_ALIGN_CENTER| GridData.HORIZONTAL_ALIGN_END); //$NON-NLS-1$ clear.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { CommitCommentArea.this.clearCommitText(); @@ -121,7 +130,7 @@ public class CommitCommentArea extends DialogArea { * Method initializeValues. */ private void initializeValues() { - for (int i = comments.length - 1; i >= 0; --i) { + for (int i = 0; i < comments.length; i++) { previousCommentsCombo.add(comments[i]); } if (comments.length > 0) |