Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ protected void buttonPressed(int buttonId) {
}
//save all dirty editors
BuildUtilities.saveEditors(null);
//batching changes ensures that autobuild runs after cleaning
// No job rule, as in BuildAction: each project clean takes the rules that its
// builders need, so a clean of selected projects does not block other projects.
// The job is one workspace operation, so the auto-build starts after it.
WorkspaceJob cleanJob = new WorkspaceJob(
cleanAll ? IDEWorkbenchMessages.CleanDialog_cleanAllTaskName
: IDEWorkbenchMessages.CleanDialog_cleanSelectedTaskName) {
Expand Down Expand Up @@ -183,7 +185,6 @@ public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
return Status.OK_STATUS;
}
};
cleanJob.setRule(ResourcesPlugin.getWorkspace().getRuleFactory().buildRule());
cleanJob.setUser(true);
cleanJob.setProperty(IProgressConstants2.SHOW_IN_TASKBAR_ICON_PROPERTY, Boolean.TRUE);
cleanJob.schedule();
Expand Down
Loading