Eclipse Integration 1.6.1: qtcppdesigner causes org.eclipse.swt.SWTException: Invalid thread access
-
FYI:
Under Eclipse Galileo and Helios (CDT 6 and 7), Linux X86_64, qt designer (com.trolltech.qtcppdesigner) causes the CDT Reference Search feature to fail with "org.eclipse.swt.SWTException: Invalid thread access". (The designer Is being polled for dirty files when this happens (see stack below) but it doesn't make any difference if the ui file is dirty or not).
Edit: This also affects other CDT search features.
Workaround: close qtdesigner before using the Reference feature.
Stack:
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.SWT.error(SWT.java:3770)
at org.eclipse.swt.widgets.Widget.error(Widget.java:450)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:389)
at com.trolltech.qtcppdesigner.views.embedded.FormWindowW.isDirty(FormWindowW.java:141)
at com.trolltech.qtcppdesigner.editors.UiEditor.isDirty(UiEditor.java:159)
at org.eclipse.ui.internal.EditorManager.collectDirtyEditors(EditorManager.java:276)
at org.eclipse.ui.internal.EditorManager.getDirtyEditors(EditorManager.java:566)
at org.eclipse.ui.internal.WorkbenchPage.getDirtyEditors(WorkbenchPage.java:2071)
at org.eclipse.cdt.ui.CUIPlugin.getDirtyEditors(CUIPlugin.java:690)
... -
[quote author="Taylor Braun-Jones" date="1342096585"]Are there any updates on this issue? I also experience the problem and would prefer to not need the clunky workaround of closing all Qt Designer views.[/quote]
None as far as I know - Eclipse Integration is still at 1.6.1 (seems development has ceased?) and the bug still exists under Eclipse Indigo. It causes many other problems too.
I just use Qt Designer/Creator externally if I need to work with gui stuff as I also found problems using custom widgets with EI.