In order to open a modal dialog, you need to pass a parent window, and pass the necessary flags for the dialog to be modal of course.
Depending on where you are in the eclipse infrastructure, finding this parent window is not always easy.
How can the parent window be accessed?