From e2661d99930f9dbbfde5c8b5a096176c720d0044 Mon Sep 17 00:00:00 2001 From: Serge Beauchamp Date: Mon, 7 Oct 2013 15:05:16 +0100 Subject: [PATCH] Bug 418810 - Two options are selected at the same time after clicking "Restore Defaults" button Change-Id: I03341f636f4fad6e129847e76953c290351773fc Signed-off-by: Serge Beauchamp Reviewed-on: https://git.eclipse.org/r/17108 Reviewed-by: Sergey Prigogin IP-Clean: Sergey Prigogin Tested-by: Sergey Prigogin --- .../ui/preferences/SaveActionsPreferencePage.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/SaveActionsPreferencePage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/SaveActionsPreferencePage.java index c26dde76c76..853be0f3bd3 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/SaveActionsPreferencePage.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/SaveActionsPreferencePage.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009 Google, Inc and others. + * Copyright (c) 2013 Google, Inc 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 @@ -7,6 +7,7 @@ * * Contributors: * Sergey Prigogin (Google) - initial API and implementation + * Serge Beauchamp (Freescale Semiconductor) - Bug 418810 *******************************************************************************/ package org.eclipse.cdt.internal.ui.preferences; @@ -103,12 +104,13 @@ public class SaveActionsPreferencePage extends AbstractPreferencePage { createConfigurationBlock(parent); - initialize(); + initializeFields(); return parent; } - private void initialize() { - initializeFields(); + @Override + protected void initializeFields() { + super.initializeFields(); fRadioAllLines.setSelection(!fRadioEditedLines.getSelection()); } }