Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2004-03-31 03:41:54 +0000
committerDarin Swanson2004-03-31 03:41:54 +0000
commit74bbe5992aae4008359bbbe67c77a1e3ce84a0af (patch)
tree5cc45bc38d4f7e8130f15923f4e9fcc9092ed967 /org.eclipse.debug.ui
parenta6d9e6f2ac90f48928ad9e4e9b781663186d64b7 (diff)
downloadeclipse.platform.debug-74bbe5992aae4008359bbbe67c77a1e3ce84a0af.tar.gz
eclipse.platform.debug-74bbe5992aae4008359bbbe67c77a1e3ce84a0af.tar.xz
eclipse.platform.debug-74bbe5992aae4008359bbbe67c77a1e3ce84a0af.zip
Bug 56070 - New and Delete buttons remained disabled after cancelling search
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java
index ece71cf93..aa348f1f7 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationsDialog.java
@@ -1312,13 +1312,7 @@ public class LaunchConfigurationsDialog extends TitleAreaDialog implements ILaun
* @see #restoreUIState
*/
private Map saveUIState() {
- Map savedState= new HashMap(10);
- if (getButtonActionNew() != null) {
- saveEnableStateAndSet(getButtonActionNew().getButton(), savedState, "new", false);//$NON-NLS-1$
- }
- if (getButtonActionDelete() != null) {
- saveEnableStateAndSet(getButtonActionDelete().getButton(), savedState, "delete", false);//$NON-NLS-1$
- }
+ Map savedState= new HashMap(4);
saveEnableStateAndSet(getButton(ID_LAUNCH_BUTTON), savedState, "launch", false);//$NON-NLS-1$
saveEnableStateAndSet(getButton(ID_CLOSE_BUTTON), savedState, "close", false);//$NON-NLS-1$
if (getSelectionArea() != null) {
@@ -1356,12 +1350,6 @@ public class LaunchConfigurationsDialog extends TitleAreaDialog implements ILaun
* @see #saveUIState
*/
private void restoreUIState(Map state) {
- if (getButtonActionNew() != null) {
- restoreEnableState(getButtonActionNew().getButton(), state, "new");//$NON-NLS-1$
- }
- if (getButtonActionDelete() != null) {
- restoreEnableState(getButtonActionDelete().getButton(), state, "delete");//$NON-NLS-1$
- }
restoreEnableState(getButton(ID_LAUNCH_BUTTON), state, "launch");//$NON-NLS-1$
restoreEnableState(getButton(ID_CLOSE_BUTTON), state, "close");//$NON-NLS-1$
ControlEnableState treeState = (ControlEnableState) state.get("selectionarea");//$NON-NLS-1$

Back to the top