Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] saving a dirty editor ...

Hello everybody,

We are developing some refactoring for C based on the CDT plugin. The
problem I am facing is that I have my own plugin running and before
and after the refactoring I would like to save all "dirty" editors ...

I have tried many alternative, e.g.
PlatformUI.getWorkbench().saveAllEditors(false), but I always come to
the same problem:

org.eclipse.swt.SWTException: Invalid thread access

This seem to happen because the current thread is not the same as the
display.thread in Widget#checkWidget method.

Could you, please, advice me on how to resolve this issue?

Thank you very much.

Best regards,
Richard


Back to the top