diff --git a/cobigen-eclipse/cobigen-eclipse/src/com/devonfw/cobigen/eclipse/common/tools/ResourcesPluginUtil.java b/cobigen-eclipse/cobigen-eclipse/src/com/devonfw/cobigen/eclipse/common/tools/ResourcesPluginUtil.java index 0b842712b..7764604b0 100644 --- a/cobigen-eclipse/cobigen-eclipse/src/com/devonfw/cobigen/eclipse/common/tools/ResourcesPluginUtil.java +++ b/cobigen-eclipse/cobigen-eclipse/src/com/devonfw/cobigen/eclipse/common/tools/ResourcesPluginUtil.java @@ -165,20 +165,18 @@ public static int createUpdateTemplatesDialog() { */ public static String downloadJar(boolean isDownloadSource) throws MalformedURLException, IOException { - String fileName = ""; - ProgressMonitorDialog progressMonitor = new ProgressMonitorDialog(Display.getDefault().getActiveShell()); progressMonitor.open(); progressMonitor.getProgressMonitor().beginTask("downloading latest templates...", 0); File templatesDirectory = getTemplatesDirectory(); try { - fileName = TemplatesJarUtil.downloadLatestDevon4jTemplates(isDownloadSource, templatesDirectory); + TemplatesJarUtil.downloadLatestDevon4jTemplates(isDownloadSource, templatesDirectory); } finally { progressMonitor.close(); } - return fileName; + return templatesDirectory.toString(); } /**