From 7c88a3a468c960ae5fb6c2659354429e66820f8b Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 4 Aug 2012 18:06:48 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4512 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- .../tools/eclipse/config/handlers/GenerateFiles.java | 4 ++++ .../eclipse/config/wizards/ConfigurationNewWizard.java | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/eclipse/config_wizard/src/org/chibios/tools/eclipse/config/handlers/GenerateFiles.java b/tools/eclipse/config_wizard/src/org/chibios/tools/eclipse/config/handlers/GenerateFiles.java index e10d4c667..af100f9fb 100644 --- a/tools/eclipse/config_wizard/src/org/chibios/tools/eclipse/config/handlers/GenerateFiles.java +++ b/tools/eclipse/config_wizard/src/org/chibios/tools/eclipse/config/handlers/GenerateFiles.java @@ -30,7 +30,11 @@ import org.chibios.tools.eclipse.config.utils.TemplateException; import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IFolder; +import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.FileLocator; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.Path; diff --git a/tools/eclipse/config_wizard/src/org/chibios/tools/eclipse/config/wizards/ConfigurationNewWizard.java b/tools/eclipse/config_wizard/src/org/chibios/tools/eclipse/config/wizards/ConfigurationNewWizard.java index 51002d5e6..e6c309b43 100644 --- a/tools/eclipse/config_wizard/src/org/chibios/tools/eclipse/config/wizards/ConfigurationNewWizard.java +++ b/tools/eclipse/config_wizard/src/org/chibios/tools/eclipse/config/wizards/ConfigurationNewWizard.java @@ -133,7 +133,7 @@ public class ConfigurationNewWizard extends Wizard implements INewWizard { throwCoreException("Container \"" + containerName + "\" does not exist."); } IContainer container = (IContainer)resource; - monitor.beginTask("Creating " + projectFileName, 3); + monitor.beginTask("Creating " + projectFileName, 4); /* Step #1, creates the project file.*/ final IFile projectFile = container.getFile(new Path(projectFileName)); @@ -182,6 +182,10 @@ public class ConfigurationNewWizard extends Wizard implements INewWizard { } }); monitor.worked(1); + + /* Step #4, refreshing local resources.*/ + container.refreshLocal(IResource.DEPTH_INFINITE, monitor); + monitor.worked(1); } /**