Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353993 - Widget Disposed Exception in Property Page
Summary: Widget Disposed Exception in Property Page
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-05 09:00 EDT by Santhosh Hari CLA
Modified: 2011-08-16 08:56 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Santhosh Hari CLA 2011-08-05 09:00:27 EDT
Build Identifier: Eclipse Helios

1) Load a project 
2) Go to properties page  
3) Apply the settings and press ESC 

Reproducible: Sometimes

Steps to Reproduce:
1) Load a project 
2) Go to properties page  
3) Apply the settings and press ESC
Comment 1 Santhosh Hari CLA 2011-08-05 09:07:05 EDT
Load Project
Go to properties page
Change the settings in properties page - > Dialog appears for Confirmation
Press Ok on dialog
Press Ok on Properties Page and Esc

Exception thrown
Comment 2 Santhosh Hari CLA 2011-08-05 09:08:21 EDT
This is the exception thrown


org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4083)
at org.eclipse.swt.SWT.error(SWT.java:3998)
at org.eclipse.swt.SWT.error(SWT.java:3969)
at org.eclipse.swt.widgets.Widget.error(Widget.java:468)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:340)
at org.eclipse.swt.widgets.Button.getSelection(Button.java:729)
at org.eclipse.ui.ide.dialogs.AbstractEncodingFieldEditor.getSelectedEncoding(AbstractEncodingFieldEditor.java:385)
at org.eclipse.ui.ide.dialogs.ResourceEncodingFieldEditor.doStore(ResourceEncodingFieldEditor.java:150)
at org.eclipse.ui.ide.dialogs.ResourceEncodingFieldEditor.store(ResourceEncodingFieldEditor.java:232)
at org.eclipse.ui.internal.ide.dialogs.ResourceInfoPage.performOk(ResourceInfoPage.java:926)
at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:964)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:944)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:447)
at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:157)
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:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
Comment 3 Felipe Heidrich CLA 2011-08-05 11:03:37 EDT
moving to ui
Comment 4 Dani Megert CLA 2011-08-06 03:45:27 EDT
> Load Project
What do you mean by "load"?

> Go to properties page
> Change the settings in properties page - > Dialog appears for Confirmation
What exactly do you change that triggers a dialog?
Comment 5 Santhosh Hari CLA 2011-08-09 01:16:34 EDT
(In reply to comment #4)
> > Load Project
> What do you mean by "load"?
> 
> > Go to properties page
> > Change the settings in properties page - > Dialog appears for Confirmation
> What exactly do you change that triggers a dialog?


Pallavi:

Load project -> Import a project.

We have created a customised properties page, which on change pops up a dialog asking for reloading of certain features into project.

Once Ok is pressed, the build of project starts with the changes.

Changes made are like: enabling a check box for loading, enabling radio button for showing errors etc, which is finally applied on project
Comment 6 Dani Megert CLA 2011-08-09 02:50:55 EDT
>We have created a customised properties page, which on change pops up a dialog
>asking for reloading of certain features into project.
Can you please attach your code here.
Comment 7 Remy Suen CLA 2011-08-16 08:56:20 EDT
See comment 6.