Bug 17734

Summary: ClassCastException restoring default Debug preferences
Product: [Eclipse Project] Platform Reporter: Carolyn MacLeod <carolynmacleod4>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Carolyn MacLeod CLA 2002-05-24 12:02:24 EDT
20020521 (F1)

- Window -> Preferences
- Debug -- Launch History
- click "Restore Defaults"
- click "Apply"
Walkback in .log pasted below.
I am not sure if this is becase I had my launch history size set to 15, and I 
did have 15 entries, or if this is some other problem.

!ENTRY org.eclipse.core.resources 1 4 May 24, 2002 12:07:54.255
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 May 24, 2002 12:07:54.265
!MESSAGE java.lang.String
!STACK 0
java.lang.ClassCastException: java.lang.String
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationManager.pr
opertyChange(LaunchConfigurationManager.java:813)
	at 
org.eclipse.ui.plugin.AbstractUIPlugin$CompatibilityPreferenceStore.fireProperty
ChangeEvent(AbstractUIPlugin.java:247)
	at org.eclipse.ui.plugin.AbstractUIPlugin$1.propertyChange
(AbstractUIPlugin.java:188)
	at org.eclipse.core.runtime.Preferences.firePropertyChangeEvent
(Preferences.java:505)
	at org.eclipse.core.runtime.Preferences.setToDefault
(Preferences.java:1189)
	at 
org.eclipse.ui.plugin.AbstractUIPlugin$CompatibilityPreferenceStore.setToDefault
(AbstractUIPlugin.java:415)
	at org.eclipse.jface.preference.FieldEditor.store(FieldEditor.java:573)
	at 
org.eclipse.debug.internal.ui.preferences.LaunchHistoryPreferencePage.performOk
(LaunchHistoryPreferencePage.java:192)
	at org.eclipse.jface.preference.PreferencePage.performApply
(PreferencePage.java:375)
	at org.eclipse.jface.preference.PreferencePage$2.widgetSelected
(PreferencePage.java:247)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:85)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.jface.window.Window.runEventLoop(Window.java(Compiled 
Code))
	at org.eclipse.jface.window.Window.open(Window.java:538)
	at org.eclipse.ui.internal.OpenPreferencesAction.run
(OpenPreferencesAction.java:47)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:590)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:361)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:739)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:200)
	at org.eclipse.core.launcher.Main.run(Main.java:643)
	at org.eclipse.core.launcher.Main.main(Main.java:476)
Comment 1 Darin Swanson CLA 2002-05-24 12:12:28 EDT

*** This bug has been marked as a duplicate of 16970 ***