Skip to content

Commit

Permalink
[m2e] Use project configuration for the natures.
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 25, 2016
1 parent c9e7c41 commit 2bcb5fa
Showing 1 changed file with 2 additions and 15 deletions.
Expand Up @@ -110,20 +110,6 @@ protected void addPreferences(
facade.getProject(), outputPath);
}

/** Invoked to add the natures.
*
* @param facade - the Maven facade.
* @param config - the configuration.
* @param monitor - the monitor.
* @throws CoreException if cannot add the source folders.
*/
@SuppressWarnings("static-method")
protected void addNatures(IMavenProjectFacade facade,
SARLConfiguration config, IProgressMonitor monitor) throws CoreException {
addNature(facade.getProject(), SARLEclipseConfig.NATURE_ID, monitor);
addNature(facade.getProject(), SARLEclipseConfig.XTEXT_NATURE_ID, monitor);
}

private static IPath makeFullPath(IMavenProjectFacade facade, File file) {
assert file != null;
final IProject project = facade.getProject();
Expand Down Expand Up @@ -405,7 +391,8 @@ public void configure(ProjectConfigurationRequest request,
IProgressMonitor monitor) throws CoreException {
final SARLConfiguration config = readConfiguration(request, monitor);
forceMavenCompilerConfiguration(request.getMavenProjectFacade(), config);
addNatures(request.getMavenProjectFacade(), config, monitor);
io.sarl.eclipse.natures.SARLProjectConfigurator.addSarlNatures(
request.getMavenProjectFacade().getProject());
}

@Override
Expand Down

0 comments on commit 2bcb5fa

Please sign in to comment.