Skip to content

Commit

Permalink
[eclipse] Rename StandardProjectSREProvider to EclipseIDEProjectSREPr…
Browse files Browse the repository at this point in the history
…ovider.

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Jan 28, 2018
1 parent f133dd4 commit 54b497f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
Expand Up @@ -52,7 +52,7 @@
import io.sarl.eclipse.SARLEclipsePlugin;
import io.sarl.eclipse.launching.config.ILaunchConfigurationAccessor;
import io.sarl.eclipse.launching.config.ILaunchConfigurationConfigurator;
import io.sarl.eclipse.launching.sreproviding.StandardProjectSREProviderFactory;
import io.sarl.eclipse.launching.sreproviding.EclipseIDEProjectSREProviderFactory;
import io.sarl.eclipse.runtime.ISREInstall;
import io.sarl.eclipse.runtime.ProjectProvider;
import io.sarl.eclipse.runtime.ProjectSREProviderFactory;
Expand Down Expand Up @@ -126,7 +126,7 @@ public void createControl(Composite parent) {

final ProjectProvider projectProvider = new ProjectAdapter();
final List<ProjectSREProviderFactory> sreProviderFactories = getProviderFromExtension();
sreProviderFactories.add(new StandardProjectSREProviderFactory());
sreProviderFactories.add(new EclipseIDEProjectSREProviderFactory());

this.sreBlock = new SREConfigurationBlock(true, projectProvider, sreProviderFactories);
this.sreBlock.createControl(parent);
Expand Down
Expand Up @@ -65,7 +65,7 @@
import io.sarl.eclipse.buildpath.SARLClasspathContainerInitializer;
import io.sarl.eclipse.launching.config.ILaunchConfigurationAccessor;
import io.sarl.eclipse.launching.config.RootContextIdentifierType;
import io.sarl.eclipse.launching.sreproviding.StandardProjectSREProvider;
import io.sarl.eclipse.launching.sreproviding.EclipseIDEProjectSREProvider;
import io.sarl.eclipse.runtime.ISREInstall;
import io.sarl.eclipse.runtime.ProjectSREProvider;
import io.sarl.eclipse.runtime.ProjectSREProviderFactory;
Expand Down Expand Up @@ -440,7 +440,7 @@ private ISREInstall getProjectSpecificSRE(ILaunchConfiguration configuration, bo
}

// Get the SRE from the default project configuration
final ProjectSREProvider provider = new StandardProjectSREProvider(prj);
final ProjectSREProvider provider = new EclipseIDEProjectSREProvider(prj);
sre = provider.getProjectSREInstall();
if (sre != null) {
if (verify) {
Expand Down
Expand Up @@ -34,15 +34,16 @@
import io.sarl.eclipse.runtime.SARLRuntime;

/** Default implementation of a project SRE provider.
* This provider is reading the properties associated to the project and
* This provider is reading the Eclipse IDE properties associated to the project and
* determine the corresponding SRE.
*
* @author $Author: sgalland$
* @version $FullVersion$
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
* @see EclipseIDEProjectSREProviderFactory
*/
public class StandardProjectSREProvider implements ProjectSREProvider {
public class EclipseIDEProjectSREProvider implements ProjectSREProvider {

private final boolean projectSpecificConfiguration;

Expand All @@ -53,7 +54,7 @@ public class StandardProjectSREProvider implements ProjectSREProvider {
/** Constructor.
* @param project the project.
*/
public StandardProjectSREProvider(IProject project) {
public EclipseIDEProjectSREProvider(IProject project) {
boolean tmpSpecific = false;
boolean tmpUseSystem = false;
String tmpSRE = null;
Expand Down
Expand Up @@ -27,26 +27,26 @@
import io.sarl.eclipse.runtime.ProjectSREProviderFactory;

/** Factory of the default implementation of a project SRE provider.
* This provider is reading the properties associated to the project and
* This provider is reading the Eclipse IDE properties associated to the project and
* determine the corresponding SRE.
*
* @author $Author: sgalland$
* @version $FullVersion$
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
* @see StandardProjectSREProviderFactory
* @see EclipseIDEProjectSREProvider
*/
public class StandardProjectSREProviderFactory implements ProjectSREProviderFactory {
public class EclipseIDEProjectSREProviderFactory implements ProjectSREProviderFactory {

/** Construct a factory of SRE provider.
*/
public StandardProjectSREProviderFactory() {
public EclipseIDEProjectSREProviderFactory() {
//
}

@Override
public ProjectSREProvider getProjectSREProvider(IProject project) {
return new StandardProjectSREProvider(project);
return new EclipseIDEProjectSREProvider(project);
}

}

0 comments on commit 54b497f

Please sign in to comment.