eclipse plugin: don't show a message box when the window isn't created yet

This commit is contained in:
Timotei Dolean 2010-05-26 11:40:11 +00:00
parent 04ec9be68e
commit 2272449226

View file

@ -15,6 +15,8 @@ public class GUIUtils
*/
public static void showMessageBox(final IWorkbenchWindow window,final String message)
{
if (window == null || window.getShell() == null)
return;
try
{
window.getShell().getDisplay().asyncExec(new Runnable() {