Bug 86456 [Dialogs] Dialogs open on wrong monitor
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/NewProjectAction.java
this(PlatformUI.getWorkbench().getActiveWorkbenchWindow());
    }
    /**
     * Creates a new action for launching the new project
     * selection wizard.
     *
     * @param window the workbench window to query the current
     * 		selection and shell for opening the wizard.
     */
    public NewProjectAction(IWorkbenchWindow window) {
        super(IDEWorkbenchMessages.getString("NewProjectAction.text")); 
        if (window == null) {
            throw new IllegalArgumentException();
        }
        this.window = window;
        ISharedImages images = PlatformUI.getWorkbench().getSharedImages();
        setImageDescriptor(images
                .getImageDescriptor(ISharedImages.IMG_TOOL_NEW_WIZARD));
        setDisabledImageDescriptor(images
                .getImageDescriptor(ISharedImages.IMG_TOOL_NEW_WIZARD_DISABLED));
        setToolTipText(IDEWorkbenchMessages
                .getString("NewProjectAction.toolTip")); 
        PlatformUI.getWorkbench().getHelpSystem().setHelp(this,
				org.eclipse.ui.internal.IWorkbenchHelpContextIds.NEW_ACTION);
    }
    /* (non-Javadoc)
     * Method declared on IAction.
     */
    public void run() {