git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4512 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2012-08-04 18:06:48 +00:00
parent 8f81ae8250
commit 7c88a3a468
2 changed files with 9 additions and 1 deletions

View File

@ -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;

View File

@ -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);
}
/**