Skip to content

Commit

Permalink
[workspace] Refresh projects
Browse files Browse the repository at this point in the history
If we detect a changed project we inform the workspace.

Signed-off-by: Peter Kriens <[email protected]>
  • Loading branch information
pkriens committed Sep 21, 2018
1 parent 80ad85b commit 2c69a52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bndtools.core/src/bndtools/central/Central.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ public static Workspace getWorkspace() throws Exception {
if (ws != null) {
ws.close();
}
logger.logError("Init of workspace", e);
throw e;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public boolean visit(IResourceDelta delta) throws CoreException {

if (delta.getKind() == IResourceDelta.ADDED || delta.getKind() == IResourceDelta.REMOVED) {
refresh.set(true);
workspace.refreshProjects();
return false;
}
for (IResourceDelta subDelta : delta.getAffectedChildren(IResourceDelta.ADDED | IResourceDelta.REMOVED | IResourceDelta.CHANGED))
Expand Down

0 comments on commit 2c69a52

Please sign in to comment.