Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在 Eclipse ILaunchConfigurationDelegate 结束时以编程方式打开一个视图。目前,当我尝试调用 showView() 时出现“无效线程访问”错误。如何从启动器打开视图?
尝试像这样包装你的电话;
Display.getDefault().asyncExec(new Runnable() { public void run() { // Your code goes here } });
这会将它放在显示线程上,并且应该修复您看到的错误。