eclipse plugin: don't show a message box when the window isn't created yet
This commit is contained in:
parent
04ec9be68e
commit
2272449226
1 changed files with 2 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue