diff options
author | Robert Roth | 2015-03-19 23:40:44 +0000 |
---|---|---|
committer | Robert Roth | 2015-04-21 14:24:56 +0000 |
commit | 6e462af91a8b5741f253e0d280f79100d48e971b (patch) | |
tree | eecb45915b4e7935060330fd3df1cff789cd2c21 | |
parent | 3a163cd2fca76466db9f81e125e6a7539ef77a1b (diff) | |
download | eclipse.platform.debug-6e462af91a8b5741f253e0d280f79100d48e971b.tar.gz eclipse.platform.debug-6e462af91a8b5741f253e0d280f79100d48e971b.tar.xz eclipse.platform.debug-6e462af91a8b5741f253e0d280f79100d48e971b.zip |
Bug 432832 - [Dialogs] Apply button position is inconsistent in theI20150429-1030I20150429-0800I20150428-2000I20150428-0800I20150428-0100I20150427-2000I20150427-0800I20150426-2000I20150422-1000
Debug Configurations and Project Properties dialogs
Moved the Apply button to the right side to be consistent with
PreferencesPages, which put the Apply button in the buttonbar as the
last item.
Change-Id: I8fa8819cf887bd4935d836bf67ea2b3af08ac90e
Signed-off-by: Robert Roth <robert.roth.off@gmail.com>
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java index d600542a0..142ea3a00 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationTabGroupViewer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2014 IBM Corporation and others. + * Copyright (c) 2000, 2014, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -8,6 +8,7 @@ * Contributors: * IBM Corporation - initial API and implementation * Mohamed Hussein (Mentor Graphics) - Added getWarningMessage (Bug 386673) + * Robert Roth - Used consistent apply button location (Bug 432832) *******************************************************************************/ package org.eclipse.debug.internal.ui.launchConfigurations; @@ -301,19 +302,20 @@ public class LaunchConfigurationTabGroupViewer { fOptionsLink.setVisible(false); Composite buttonComp = SWTFactory.createComposite(blComp, 2, 1, GridData.HORIZONTAL_ALIGN_END); - fApplyButton = SWTFactory.createPushButton(buttonComp, LaunchConfigurationsMessages.LaunchConfigurationDialog__Apply_17, null,GridData.HORIZONTAL_ALIGN_END); - fApplyButton.addSelectionListener(new SelectionAdapter() { + + fRevertButton = SWTFactory.createPushButton(buttonComp, LaunchConfigurationsMessages.LaunchConfigurationDialog_Revert_2, null, GridData.HORIZONTAL_ALIGN_END); + fRevertButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent evt) { - handleApplyPressed(); + handleRevertPressed(); } }); - fRevertButton = SWTFactory.createPushButton(buttonComp, LaunchConfigurationsMessages.LaunchConfigurationDialog_Revert_2, null, GridData.HORIZONTAL_ALIGN_END); - fRevertButton.addSelectionListener(new SelectionAdapter() { + fApplyButton = SWTFactory.createPushButton(buttonComp, LaunchConfigurationsMessages.LaunchConfigurationDialog__Apply_17, null,GridData.HORIZONTAL_ALIGN_END); + fApplyButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent evt) { - handleRevertPressed(); + handleApplyPressed(); } }); Dialog.applyDialogFont(parent); |