From 5ced53c519afb09a434f36e70ef948770ebabb45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?PK=20S=C3=B8reide?= Date: Wed, 10 Oct 2018 19:22:29 +0200 Subject: [PATCH] Fix: Refresh ProjectTracker when NewBndProjectWizard is done MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The project is not picked up by bnd otherwise, and the buildpath is not set. Signed-off-by: PK Søreide --- .../bndtools/wizards/project/AbstractNewBndProjectWizard.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bndtools.core/src/bndtools/wizards/project/AbstractNewBndProjectWizard.java b/bndtools.core/src/bndtools/wizards/project/AbstractNewBndProjectWizard.java index 15b5e6525..4268ea0fa 100644 --- a/bndtools.core/src/bndtools/wizards/project/AbstractNewBndProjectWizard.java +++ b/bndtools.core/src/bndtools/wizards/project/AbstractNewBndProjectWizard.java @@ -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