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
new Label(radioGroup, SWT.NONE);
        new Label(radioGroup, SWT.NONE);
        
        selectedButton = new Button(radioGroup, SWT.RADIO);
        selectedButton.setText(IDEWorkbenchMessages
                .getString("CleanDialog.cleanSelectedButton")); 
        GridData data = new GridData();
        data.verticalAlignment = SWT.TOP;
        selectedButton.setLayoutData(data);
        selectedButton.addSelectionListener(updateEnablement);
        createProjectSelectionTable(radioGroup);
        
        if (!ResourcesPlugin.getWorkspace().isAutoBuilding()) {
            buildNowButton = new Button(parent, SWT.CHECK);
            buildNowButton.setText(IDEWorkbenchMessages
                    .getString("CleanDialog.buildNowButton")); 
            buildNowButton.setSelection(true);
            buildNowButton.setLayoutData(new GridData(
                    GridData.HORIZONTAL_ALIGN_BEGINNING));
        }
        return radioGroup;
    }
    private void createProjectSelectionTable(Composite radioGroup) {
    	projectNames = CheckboxTableViewer.newCheckList(radioGroup, SWT.BORDER);
    	projectNames.setContentProvider(new WorkbenchContentProvider());
    	projectNames.setLabelProvider(new WorkbenchLabelProvider());
    	projectNames.setSorter(new ResourceSorter(ResourceSorter.NAME));
    	projectNames.addFilter(new ViewerFilter() {
    		private final IProject[] projectHolder = new IProject[1];
			public boolean select(Viewer viewer, Object parentElement, Object element) {