diff options
author | Jean Michel-Lemieux | 2004-03-22 19:32:29 +0000 |
---|---|---|
committer | Jean Michel-Lemieux | 2004-03-22 19:32:29 +0000 |
commit | 967a45651b32ba06b019eb7417878caade3f0a8d (patch) | |
tree | 30ba36f60ee7b7a078cbff8ae7ebfb0d0f836291 | |
parent | d5cea9202f4b7a0fe4c586769899d530f222bcc0 (diff) | |
download | eclipse.platform.team-967a45651b32ba06b019eb7417878caade3f0a8d.tar.gz eclipse.platform.team-967a45651b32ba06b019eb7417878caade3f0a8d.tar.xz eclipse.platform.team-967a45651b32ba06b019eb7417878caade3f0a8d.zip |
Added cancel button to dialog.
-rw-r--r-- | bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ReplaceWithRevisionAction.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ReplaceWithRevisionAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ReplaceWithRevisionAction.java index 495dc320b..d0a4dd44f 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ReplaceWithRevisionAction.java +++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/ReplaceWithRevisionAction.java @@ -45,7 +45,7 @@ public class ReplaceWithRevisionAction extends CompareWithRevisionAction { * Add the replace button to the dialog. */ protected void createButtonsForButtonBar(Composite parent) { - replaceButton = createButton(parent, REPLACE_ID, Policy.bind("ReplaceWithRevisionAction.0"), false); //$NON-NLS-1$ + replaceButton = createButton(parent, REPLACE_ID, Policy.bind("ReplaceWithRevisionAction.0"), true); //$NON-NLS-1$ replaceButton.setEnabled(false); ((CVSCompareRevisionsInput)getCompareEditorInput()).getViewer().addSelectionChangedListener( new ISelectionChangedListener() { @@ -55,6 +55,7 @@ public class ReplaceWithRevisionAction extends CompareWithRevisionAction { } } ); + createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); //$NON-NLS-1$ // Don't call super because we don't want the OK button to appear } |