Bug 84586 Launch doesn't wait for build if launching while "cleaning" before build
If I launch from the Java perspective while a build is in progress, and then switch to the debug perspective, no dummy launch appears (although the progress view shows a pending launch).
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CleanDialog.java
return Status.OK_STATUS;
    		}
    	};
        cleanJob.setRule(ResourcesPlugin.getWorkspace().getRuleFactory()
                .buildRule());
        cleanJob.setUser(true);
        cleanJob.schedule();
    }
    /* (non-Javadoc)
     * @see org.eclipse.jface.dialogs.MessageDialog#createCustomArea(org.eclipse.swt.widgets.Composite)
     */
    protected Control createCustomArea(Composite parent) {
        Composite radioGroup = new Composite(parent, SWT.NONE);
        GridLayout layout = new GridLayout();
        layout.marginWidth = layout.marginHeight = 0;
        layout.numColumns = 3;
        radioGroup.setLayout(layout);
        radioGroup.setLayoutData(new GridData(GridData.FILL_BOTH));
        SelectionListener updateEnablement = new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                updateEnablement();
            }
        };
        
        allButton = new Button(radioGroup, SWT.RADIO);
        allButton.setText(IDEWorkbenchMessages
                .getString("CleanDialog.cleanAllButton")); 
        allButton.setSelection(true);
        allButton.addSelectionListener(updateEnablement);