Skip to content

Commit 0d7583d

Browse files
BananeweizenHannesWell
authored andcommitted
Use quotes on project name #1600
Also fix 2 additional properties ending in blanks. One can be removed, the other should be trimmed and the blank be added in code.
1 parent 7b152e5 commit 0d7583d

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/Messages.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,6 @@ public class Messages extends NLS {
200200

201201
public static String ProjectConfigurationManager_error_rename;
202202

203-
public static String ProjectConfigurationManager_error_resolve;
204-
205-
public static String ProjectConfigurationManager_error_resolve2;
206-
207203
public static String ProjectConfigurationManager_error_targetDir;
208204

209205
public static String ProjectConfigurationManager_error_unable_archetype;

org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/messages.properties

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AbstractLifecycleMapping_could_not_update_project_configuration=Could not update project {0} configuration
22
AbstractMavenRuntime_unknownProject=Not a Maven project {0}
3-
AbstractProjectConfigurator_error_missing_nature=Project does not have required nature
3+
AbstractProjectConfigurator_error_missing_nature=Project does not have required nature
44
AbstractTransferListenerAdapter_4=0% {0}
55
AbstractTransferListenerAdapter_byte=B
66
AbstractTransferListenerAdapter_cancelled=Transfer is canceled
@@ -91,8 +91,6 @@ PomFileContentDescriber_error=Internal Error: XML parser configuration error dur
9191
ProjectConfigurationManager_0=Can't get canonical file for {0}
9292
ProjectConfigurationManager_error_failed=Failed to create project.
9393
ProjectConfigurationManager_error_rename=Can't rename {0}
94-
ProjectConfigurationManager_error_resolve=Could not resolve archetype
95-
ProjectConfigurationManager_error_resolve2=\ from any of the configured repositories.
9694
ProjectConfigurationManager_error_targetDir=\ Target directory {0} already exists.
9795
ProjectConfigurationManager_error_unable_archetype=Unable to create project from archetype {0}
9896
ProjectConfigurationManager_task_configuring=Configuring Maven projects
@@ -110,7 +108,7 @@ ProjectConfigurationManager_task_importing2=Importing project {0}
110108
ProjectConfigurationManager_task_refreshing=Refreshing projects
111109
ProjectConfigurationManager_task_updating=Updating configuration for {0}
112110
ProjectConfigurationManager_task_updating_projects=Updating Maven projects
113-
ProjectRegistryManager_task_project=project {0}
111+
ProjectRegistryManager_task_project=Project ''{0}''
114112
ProjectRegistryManager_task_refreshing=Refreshing projects
115113
ProjectRegistryRefreshJob_task_refreshing=Refreshing Maven model
116114
ProjectRegistryRefreshJob_title=Updating Maven Dependencies

org.eclipse.m2e.core/src/org/eclipse/m2e/core/project/configurator/AbstractProjectConfigurator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ protected <T> T getParameterValue(MavenProject project, String parameter, Class<
189189

190190
protected void assertHasNature(IProject project, String natureId) throws CoreException {
191191
if(project.getNature(natureId) == null) {
192-
throw new CoreException(Status.error(Messages.AbstractProjectConfigurator_error_missing_nature + natureId));
192+
throw new CoreException(Status.error(Messages.AbstractProjectConfigurator_error_missing_nature + ' ' + natureId));
193193
}
194194
}
195195

0 commit comments

Comments
 (0)