Skip to content

Commit

Permalink
Fix: Refresh ProjectTracker when NewBndProjectWizard is done
Browse files Browse the repository at this point in the history
The project is not picked up by bnd otherwise, and the buildpath is not set.

Signed-off-by: PK Søreide <[email protected]>
  • Loading branch information
psoreide committed Oct 10, 2018
1 parent 2ed90b4 commit 5ced53c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ public void run(IProgressMonitor monitor) throws CoreException {
marker.setAttribute(IMarker.MESSAGE, "Missing Bnd Workspace. Create a new workspace with the 'New Bnd OSGi Workspace' wizard.");
marker.setAttribute(BuildErrorDetailsHandler.PROP_HAS_RESOLUTIONS, true);
marker.setAttribute("$bndType", BndtoolsConstants.MARKER_BND_MISSING_WORKSPACE);
} else {
Central.getWorkspace()
.refreshProjects();
}
} catch (Exception e1) {
// ignore exceptions, this is best effort to help new users
Expand Down

0 comments on commit 5ced53c

Please sign in to comment.