1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

externalization fixes

This commit is contained in:
Mikhail Sennikovsky 2007-06-06 10:19:57 +00:00
parent 8645c4e377
commit 3f69713735
11 changed files with 21 additions and 17 deletions

View file

@ -192,6 +192,6 @@ public final class OptionStringValue {
} }
public String toString() { public String toString() {
return new StringBuffer().append("ov:").append(value.toString()).toString(); return new StringBuffer().append("ov:").append(value.toString()).toString(); //$NON-NLS-1$
} }
} }

View file

@ -320,8 +320,8 @@ public class BuilderFactory {
args.remove(IMakeCommonBuildInfo.BUILD_COMMAND); args.remove(IMakeCommonBuildInfo.BUILD_COMMAND);
args.remove(IMakeCommonBuildInfo.BUILD_ARGUMENTS); args.remove(IMakeCommonBuildInfo.BUILD_ARGUMENTS);
} else { } else {
args.put(IBuilder.ATTRIBUTE_IGNORE_ERR_CMD, ""); args.put(IBuilder.ATTRIBUTE_IGNORE_ERR_CMD, ""); //$NON-NLS-1$
args.put(IBuilder.ATTRIBUTE_PARALLEL_BUILD_CMD, ""); args.put(IBuilder.ATTRIBUTE_PARALLEL_BUILD_CMD, ""); //$NON-NLS-1$
} }
} }
//end adjusting settings //end adjusting settings

View file

@ -1322,13 +1322,13 @@ public class CommonBuilder extends ACBuilder {
} }
} else if (result.getCode() == IStatus.ERROR){ } else if (result.getCode() == IStatus.ERROR){
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
buf.append("Buildfile generation error occured..").append(NEWLINE); buf.append(ManagedMakeMessages.getString("CommonBuilder.23")).append(NEWLINE); //$NON-NLS-1$
String message = result.getMessage(); String message = result.getMessage();
if(message != null || message.length() != 0){ if(message != null || message.length() != 0){
buf.append(message).append(NEWLINE); buf.append(message).append(NEWLINE);
} }
buf.append("Build stopped..").append(NEWLINE); buf.append(ManagedMakeMessages.getString("CommonBuilder.24")).append(NEWLINE); //$NON-NLS-1$
message = buf.toString(); message = buf.toString();
buildStatus.getConsoleMessagesList().add(message); buildStatus.getConsoleMessagesList().add(message);
buildStatus.cancelBuild(); buildStatus.cancelBuild();

View file

@ -156,5 +156,7 @@ CommonBuilder.16=can not clean programmatically: build workspace path is not the
CommonBuilder.12=can not clean programmatically: build workspace path is not folder CommonBuilder.12=can not clean programmatically: build workspace path is not folder
CommonBuilder.13=can not clean programmatically: build folder is not accessible CommonBuilder.13=can not clean programmatically: build folder is not accessible
CommonBuilder.22=Building referenced configurations.. CommonBuilder.22=Building referenced configurations..
CommonBuilder.23=Buildfile generation error occured..
CommonBuilder.24=Build stopped..
MakeBuilder.buildError= MakeBuilder.buildError=
ResourceChangeHandler2.0=project build settings update job ResourceChangeHandler2.0=project build settings update job

View file

@ -204,7 +204,7 @@ public class BuildEntryStorage extends AbstractEntryStorage {
return bsVarsOnly ? return bsVarsOnly ?
new BuildSystemSpecificVariableSubstitutor(ci) new BuildSystemSpecificVariableSubstitutor(ci)
: new SupplierBasedCdtVariableSubstitutor(ci, "", " "); : new SupplierBasedCdtVariableSubstitutor(ci, "", " "); //$NON-NLS-1$ //$NON-NLS-2$
} }
private UserEntryInfo[] getUserEntries(int flags, boolean usr, List emptyValuesInfos){ private UserEntryInfo[] getUserEntries(int flags, boolean usr, List emptyValuesInfos){
@ -288,7 +288,7 @@ public class BuildEntryStorage extends AbstractEntryStorage {
Path path = new Path(info.getUnresolvedPath()); Path path = new Path(info.getUnresolvedPath());
String projPath; String projPath;
if(path.segmentCount() != 0 && "..".equals(path.segment(0))){ if(path.segmentCount() != 0 && "..".equals(path.segment(0))){ //$NON-NLS-1$
projPath = path.removeFirstSegments(1).toString(); projPath = path.removeFirstSegments(1).toString();
} else { } else {
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
@ -308,7 +308,7 @@ public class BuildEntryStorage extends AbstractEntryStorage {
projPath = path.removeFirstSegments(1).toString(); projPath = path.removeFirstSegments(1).toString();
} else { } else {
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
buf.append("../").append(info.getUnresolvedPath()); buf.append("../").append(info.getUnresolvedPath()); //$NON-NLS-1$
projPath = buf.toString(); projPath = buf.toString();
} }
return new PathInfo(projPath, info.isWorkspacePath(), info.getSubstitutor()); return new PathInfo(projPath, info.isWorkspacePath(), info.getSubstitutor());

View file

@ -36,7 +36,7 @@ public class BuildSystemSpecificVariableSubstitutor extends SupplierBasedCdtVari
} }
public BuildSystemSpecificVariableSubstitutor(IVariableContextInfo contextInfo){ public BuildSystemSpecificVariableSubstitutor(IVariableContextInfo contextInfo){
this(contextInfo, "", " "); this(contextInfo, "", " "); //$NON-NLS-1$ //$NON-NLS-2$
} }
public BuildSystemSpecificVariableSubstitutor( public BuildSystemSpecificVariableSubstitutor(

View file

@ -92,10 +92,10 @@ public abstract class ACExclusionFilterEntry extends ACPathEntry implements ICEx
if(exclusionPatterns.length != 0){ if(exclusionPatterns.length != 0){
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
buf.append(result); buf.append(result);
buf.append(" ; exclude: "); buf.append(" ; exclude: "); //$NON-NLS-1$
for(int i = 0; i < exclusionPatterns.length; i++){ for(int i = 0; i < exclusionPatterns.length; i++){
if(i != 0) if(i != 0)
buf.append(", "); buf.append(", "); //$NON-NLS-1$
buf.append(exclusionPatterns[i].toString()); buf.append(exclusionPatterns[i].toString());
} }
result = buf.toString(); result = buf.toString();

View file

@ -120,7 +120,7 @@ public abstract class ACSettingEntry implements ICSettingEntry {
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
buf.append('[').append(LanguageSettingEntriesSerializer.kindToString(getKind())).append(']').append(' '); buf.append('[').append(LanguageSettingEntriesSerializer.kindToString(getKind())).append(']').append(' ');
buf.append(contentsToString()); buf.append(contentsToString());
buf.append(" ; flags: ").append(LanguageSettingEntriesSerializer.composeFlagsString(getFlags())); buf.append(" ; flags: ").append(LanguageSettingEntriesSerializer.composeFlagsString(getFlags())); //$NON-NLS-1$
return buf.toString(); return buf.toString();
} }

View file

@ -127,9 +127,9 @@ public final class CLibraryFileEntry extends ACPathEntry implements
if(fSourceAttachmentPath != null){ if(fSourceAttachmentPath != null){
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
buf.append(result); buf.append(result);
buf.append(" ; srcPath=").append(fSourceAttachmentPath); buf.append(" ; srcPath=").append(fSourceAttachmentPath); //$NON-NLS-1$
buf.append("; srcRoot=").append(fSourceAttachmentRootPath); buf.append("; srcRoot=").append(fSourceAttachmentRootPath); //$NON-NLS-1$
buf.append("; srcMapping=").append(fSourceAttachmentPrefixMapping); buf.append("; srcMapping=").append(fSourceAttachmentPrefixMapping); //$NON-NLS-1$
result = buf.toString(); result = buf.toString();
} }

View file

@ -35,7 +35,7 @@ public final class SettingsContext implements IModificationContext{
IProjectDescription eDes = fEDes; IProjectDescription eDes = fEDes;
if(eDes == null && create){ if(eDes == null && create){
if(fProject == null) if(fProject == null)
throw ExceptionFactory.createCoreException("no project associated with the context"); throw ExceptionFactory.createCoreException(SettingsModelMessages.getString("SettingsContext.0")); //$NON-NLS-1$
eDes = fProject.getDescription(); eDes = fProject.getDescription();
} }
@ -51,7 +51,7 @@ public final class SettingsContext implements IModificationContext{
if(fEDes == null) if(fEDes == null)
fEDes = des; fEDes = des;
else if(fEDes != des) else if(fEDes != des)
throw ExceptionFactory.createCoreException("can not accept the not-context project description"); throw ExceptionFactory.createCoreException(SettingsModelMessages.getString("SettingsContext.1")); //$NON-NLS-1$
} }
CompositeWorkspaceRunnable getCompositeWorkspaceRunnable(boolean create){ CompositeWorkspaceRunnable getCompositeWorkspaceRunnable(boolean create){

View file

@ -45,3 +45,5 @@ CExternalSettingsManager.3=writable ref info is requested for the read only conf
CfgExportSettingContainerFactory.2=invalid id: project name not specified CfgExportSettingContainerFactory.2=invalid id: project name not specified
ExtensionContainerFactory.4=invalid setting provider class specified ExtensionContainerFactory.4=invalid setting provider class specified
ExtensionContainerFactory.5=provider element not specified ExtensionContainerFactory.5=provider element not specified
SettingsContext.0=no project associated with the context
SettingsContext.1=can not accept the not-context project description