Bug 63826 Project menu Build Working Set item has extra separator
build i20040520 The project menu "Build Working Set" submenu should be disabled when there are OR when you can not build a working set. (i.e. you are building automatically). Secondly. The submenu looks strange with the extra separator on the top when there are no working sets. This separator should not exist unless there is a working set. Perhaps "Select Working set..." should be on top (so it keeps the same position) and then once there is a working set, you add the separator and then the working sets.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildSetMenu.java
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.Separator;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.IWorkingSet;
import org.eclipse.ui.application.IActionBarConfigurer;
/**
 * Sub-menu off project menu for showing MRU list of working set builds.
 * 
 * @since 3.0
 */
public class BuildSetMenu extends ContributionItem {
    private IActionBarConfigurer actionBars;
    boolean dirty = true;
    private IMenuListener menuListener = new IMenuListener() {
        public void menuAboutToShow(IMenuManager manager) {
            manager.markDirty();
            dirty = true;
        }
    };
    private IAction selectBuildWorkingSetAction;
    private IWorkbenchWindow window;
    /**
     * Create a new instance of the receiver.
     * @param window
     * @param actionBars
     */
    public BuildSetMenu(IWorkbenchWindow window, IActionBarConfigurer actionBars) {
        this.window = window;
        this.actionBars = actionBars;