1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Externalization fixes

This commit is contained in:
Mikhail Sennikovsky 2007-05-03 17:23:20 +00:00
parent 408a2358b9
commit e090629a8b
6 changed files with 7 additions and 6 deletions

View file

@ -26,7 +26,7 @@ import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPath;
public class BuildStateManager {
private static final String PREFS_LOCATION = "buildState";
private static final String PREFS_LOCATION = "buildState"; //$NON-NLS-1$
private static BuildStateManager fInstance;

View file

@ -148,7 +148,7 @@ public class ConfigurationBuildState implements IConfigurationBuildState {
public void store(OutputStream oStream) throws IOException{
if(fPathToStateProps != null)
fPathToStateProps.store(oStream, "");
fPathToStateProps.store(oStream, ""); //$NON-NLS-1$
// Properties props = new Properties();
// store(props);
// props.store(oStream, "");

View file

@ -144,7 +144,7 @@ public class ProjectBuildState implements IProjectBuildState {
try {
OutputStream oStream = new FileOutputStream(file);
fCfgIdToFileNameProps.store(oStream, "");
fCfgIdToFileNameProps.store(oStream, ""); //$NON-NLS-1$
oStream.close();
} catch (FileNotFoundException e) {
ManagedBuilderCorePlugin.log(e);

View file

@ -2702,7 +2702,7 @@ public class ToolChain extends HoldsOptions implements IToolChain, IBuildPropert
private Set getUnusedChilrenSet(){
if(unusedChildrenSet == null){
String childIds[] = CDataUtil.stringToArray(unusedChildren, ";");
String childIds[] = CDataUtil.stringToArray(unusedChildren, ";"); //$NON-NLS-1$
if(childIds == null)
unusedChildrenSet = new HashSet();
else {
@ -2721,6 +2721,6 @@ public class ToolChain extends HoldsOptions implements IToolChain, IBuildPropert
}
private String translateUnusedIdSetToString(Set set){
return CDataUtil.arrayToString(set.toArray(), ";");
return CDataUtil.arrayToString(set.toArray(), ";"); //$NON-NLS-1$
}
}

View file

@ -3395,6 +3395,6 @@ public class CProjectDescriptionManager implements ICProjectDescriptionManager {
}
if(createIfNotFound)
return el.createChild(PREFERENCES_ELEMENT);
throw ExceptionFactory.createCoreException("workspace info element does not exist");
throw ExceptionFactory.createCoreException(SettingsModelMessages.getString("CProjectDescriptionManager.14")); //$NON-NLS-1$
}
}

View file

@ -31,6 +31,7 @@ CProjectDescriptionManager.10=invalid project file format
CProjectDescriptionManager.11=storage file not found
CProjectDescriptionManager.12=Serialing CDT Project settings..
CProjectDescriptionManager.13=Refreshing the project settings
CProjectDescriptionManager.14=workspace info element does not exist
CFolderDescription.0=data was not created
CFolderDescription.1=expected proxy of type ICLanguageSetting, but was
CFolderDescription.2=data was not created