Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 269495 - [Preferences] Compare/Patch preview on preference page: Set Encoding... throws AFE
Summary: [Preferences] Compare/Patch preview on preference page: Set Encoding... throw...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M7   Edit
Assignee: Pawel Pogorzelski CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-20 06:46 EDT by Markus Keller CLA
Modified: 2009-06-02 07:15 EDT (History)
1 user (show)

See Also:


Attachments
Patch_v01 (1.51 KB, patch)
2009-04-01 11:56 EDT, Pawel Pogorzelski CLA
no flags Details | Diff
Patch_v02 (1.49 KB, patch)
2009-04-02 06:40 EDT, Pawel Pogorzelski CLA
pawel.pogorzelski1: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2009-03-20 06:46:21 EDT
I20090317-1745

- Preferences > Compare/Patch > Text Compare
- in the preview, choose context menu > Set Encoding...
=> AFE in the log:

!ENTRY org.eclipse.ui 4 0 2009-03-20 11:41:51.313
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.core.runtime.AssertionFailedException: assertion failed:
        at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
        at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)
        at org.eclipse.jface.preference.PreferenceStore.setValue(PreferenceStore.java:696)
        at org.eclipse.jface.preference.PreferenceStore.setDefault(PreferenceStore.java:524)
        at org.eclipse.ui.texteditor.ChangeEncodingAction$1.createDialogArea(ChangeEncodingAction.java:159)
        at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:759)
        at org.eclipse.jface.window.Window.create(Window.java:431)
        at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1088)
        at org.eclipse.jface.window.Window.open(Window.java:790)
        at org.eclipse.ui.texteditor.ChangeEncodingAction.run(ChangeEncodingAction.java:210)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2393)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2357)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2209)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:492)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1284)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1260)
Comment 1 Pawel Pogorzelski CLA 2009-04-01 11:56:23 EDT
Created attachment 130580 [details]
Patch_v01
Comment 2 Tomasz Zarna CLA 2009-04-02 05:13:36 EDT
Looks good, but I would make the getEncodingSupport method part of the ITextEditor adapter not TextMergeViewer.
Comment 3 Pawel Pogorzelski CLA 2009-04-02 06:40:19 EDT
Created attachment 130677 [details]
Patch_v02

Tomasz, I agree with you and I changed the patch accordingly.
Comment 4 Tomasz Zarna CLA 2009-04-02 11:37:27 EDT
Released to HEAD, available in builds >N20090401-2000.