Community
Participate
Working Groups
When I tried to add an extension point to a plugin I was defining I got "Internal Error - Widget is disposed" STEPS 1) Create a PDE project 2) Open the plugin.xml 3) Select the extension points tab 4) add an extension point for org.eclipse.ui.preferencePages 5) Hit OK Exception org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(SWT.java:1708) at org.eclipse.swt.SWT.error(SWT.java:1642) at org.eclipse.swt.widgets.Widget.error(Widget.java:368) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Composite.getChildren(Composite.java(Compiled Code)) at org.eclipse.pde.internal.editor.manifest.AlertSection.update(AlertSection.java:259) at org.eclipse.pde.internal.editor.manifest.AlertSection.resourceChanged(AlertSection.java:251) at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:122) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:758) at org.eclipse.core.runtime.Platform.run(Platform.java:393) at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:137) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:42) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:62) at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Workspace.java:111) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java(Compiled Code)) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1202) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:78) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:98) NOTES:
PRODUCT VERSION: build 135
Moving to PDE UI.
This is fixed by moving AlertSection update code into asyncExec block (thread-safe).