Skip to content

Commit

Permalink
Merge pull request #6391 from chrisrueger/respect-build-automatically…
Browse files Browse the repository at this point in the history
…-for-workspace-reload

cnf change: prevent full build although 'Build automatically' is disabled
  • Loading branch information
chrisrueger authored Dec 9, 2024
2 parents f309ad5 + 9ad0381 commit 65e013b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions bndtools.core/src/bndtools/central/sync/WorkspaceChange.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ private IStatus done0(IProgressMonitor monitor) {
if (cancel || monitor.isCanceled())
return Status.CANCEL_STATUS;

if (!ResourcesPlugin.getWorkspace()
.isAutoBuilding()) {
return Status.warning(
"[cnf change] Skip FULL build, because 'Build Automatically' is disabled.");
}

workspace.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
} catch (CoreException e) {
return Status.error("trying to build", e);
Expand Down
3 changes: 2 additions & 1 deletion bndtools.core/src/bndtools/explorer/BndtoolsExplorer.java
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ private boolean isSelected(IProject project, String name) {
}

private Action reloadAction() {
Action rebuild = new Action("Reload workspace", Icons.desc("refresh")) {
Action rebuild = new Action("Reload workspace (Rebuilds all projects if 'Build Automatically' is enabled)",
Icons.desc("refresh")) {
WorkspaceSynchronizer s;

@Override
Expand Down

0 comments on commit 65e013b

Please sign in to comment.