Project: JDT
Bug 74801 [Progress] Invalid Thread Access in AllTypesCache
Reported: 2004-09-23 12:17:28 | Status: verified fixed

I20040921-2000-gtk When importing a type, I go this: org.eclipse.swt.SWTException: Invalid thread access at org.eclipse.swt.SWT.error(SWT.java:2691) at org.eclipse.swt.SWT.error(SWT.java:2616) at org.eclipse.swt.SWT.error(SWT.java:2587) at org.eclipse.swt.widgets.Widget.error(Widget.java:379) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:316) at org.eclipse.swt.widgets.Control.internal_new_GC(Control.java:1993) at org.eclipse.swt.graphics.GC.<init>(GC.java:115) at org.eclipse.swt.graphics.GC.<init>(GC.java:82) at org.eclipse.jface.dialogs.Dialog.shortenText(Dialog.java:290) at org.eclipse.jface.dialogs.ProgressMonitorDialog$ProgressMonitor.subTa sk(ProgressMonitorDialog.java:216) at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog$3.subTask( ProgressMonitorJobsDialog.java:402) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask(ProgressMonit orWrapper.java:156) at org.eclipse.core.runtime.SubProgressMonitor.subTask(SubProgressMonito r.java:166) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask(ProgressMonit orWrapper.java:156) at org.eclipse.core.runtime.SubProgressMonitor.subTask(SubProgressMonito r.java:166) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask(ProgressMonit orWrapper.java:156) at org.eclipse.core.runtime.SubProgressMonitor.subTask(SubProgressMonito r.java:166) at org.eclipse.jdt.internal.corext.util.AllTypesCache$DelegatedProgressM onitor.subTask(AllTypesCache.java:101) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask(ProgressMonit orWrapper.java:156) at org.eclipse.core.runtime.SubProgressMonitor.subTask(SubProgressMonito r.java:166) at org.eclipse.core.runtime.ProgressMonitorWrapper.subTask(ProgressMonit orWrapper.java:156) at org.eclipse.core.runtime.SubProgressMonitor.subTask(SubProgressMonito r.java:166) at org.eclipse.core.runtime.SubProgressMonitor.done(SubProgressMonitor.j ava:133) at org.eclipse.jdt.internal.core.search.PatternSearchJob.execute(Pattern SearchJob.java:75) at org.eclipse.jdt.internal.core.search.processing.JobManager.performCon currentJob(JobManager.java:260) at org.eclipse.jdt.core.search.SearchEngine.searchAllTypeNames(SearchEng ine.java:870) at org.eclipse.jdt.internal.corext.util.AllTypesCache.search(AllTypesCac he.java:539) at org.eclipse.jdt.internal.corext.util.AllTypesCache$TypeCacher.doSearc hTypes(AllTypesCache.java:204) at org.eclipse.jdt.internal.corext.util.AllTypesCache$TypeCacher.run(All TypesCache.java:169)

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/AllTypesCache.java