I'm trying to have a view open programatically at the end of an eclipse ILaunchConfigurationDelegate. Currently I'm getting an "invalid thread access" error when I try to call showView(). How do I open a view from the launcher?
+3
A:
Try wrapping your call like this;
Display.getDefault().asyncExec(new Runnable() {
public void run() {
// Your code goes here
}
});
This will put it on the Display thread and should fix the errors your seeing.
Topher Fangio
2009-06-10 23:10:10
Thanks! That held me up for a week.
2009-06-14 00:42:48
Glad to help :-)
Topher Fangio
2009-06-15 14:40:41