Skip to content

Commit

Permalink
[m2e] Add monitor when configuring the project.
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Aug 29, 2016
1 parent 22a7293 commit 9c49aa2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion eclipse-sarl/plugins/io.sarl.m2e/META-INF/MANIFEST.MF
Expand Up @@ -14,6 +14,7 @@ Require-Bundle: io.sarl.eclipse;bundle-version="0.4.0",
org.eclipse.m2e.maven.runtime;bundle-version="1.7.0",
org.eclipse.m2e.core;bundle-version="1.7.0",
org.eclipse.m2e.jdt;bundle-version="1.7.0",
org.eclipse.jdt.core;bundle-version="3.12.0"
org.eclipse.jdt.core;bundle-version="3.12.0",
org.eclipse.ui.ide;bundle-version="3.12.0"
Export-Package: io.sarl.m2e;x-friends:="io.sarl.m2e.tests"

Expand Up @@ -389,10 +389,13 @@ private static void forceMavenCompilerConfiguration(IMavenProjectFacade facade,
@Override
public void configure(ProjectConfigurationRequest request,
IProgressMonitor monitor) throws CoreException {
final SARLConfiguration config = readConfiguration(request, monitor);
final SubMonitor subMonitor = SubMonitor.convert(monitor, 3);
final SARLConfiguration config = readConfiguration(request, subMonitor.newChild(1));
forceMavenCompilerConfiguration(request.getMavenProjectFacade(), config);
subMonitor.worked(1);
io.sarl.eclipse.natures.SARLProjectConfigurator.addSarlNatures(
request.getMavenProjectFacade().getProject());
request.getMavenProjectFacade().getProject(),
subMonitor.newChild(1));
}

@Override
Expand Down

0 comments on commit 9c49aa2

Please sign in to comment.