mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 12:03:16 +02:00
cleanup: NON-NLS tags
This commit is contained in:
parent
46379aed09
commit
5b000a2d31
2 changed files with 9 additions and 9 deletions
|
@ -81,11 +81,11 @@ public interface ICProjectDescriptionStorageType {
|
|||
this.min_version = min_version;
|
||||
this.max_version = max_version == Version.emptyVersion ? version : max_version;
|
||||
if (min_version != Version.emptyVersion && version.compareTo(min_version) <= 0)
|
||||
throw new IllegalArgumentException("CProjectDescriptionStorageType Version: " + version +
|
||||
" must be > that min_version: " + min_version);
|
||||
throw new IllegalArgumentException("CProjectDescriptionStorageType Version: " + version + //$NON-NLS-1$
|
||||
" must be > that min_version: " + min_version); //$NON-NLS-1$
|
||||
if (max_version != Version.emptyVersion && version.compareTo(max_version) > 0)
|
||||
throw new IllegalArgumentException("CProjectDescriptionStorageType Version: " + version +
|
||||
" must be < that max_version: " + max_version);
|
||||
throw new IllegalArgumentException("CProjectDescriptionStorageType Version: " + version + //$NON-NLS-1$
|
||||
" must be < that max_version: " + max_version); //$NON-NLS-1$
|
||||
}
|
||||
/** Indicates if this type is compatible with the provided version */
|
||||
public boolean isCompatible(Version version) {
|
||||
|
@ -122,7 +122,7 @@ public interface ICProjectDescriptionStorageType {
|
|||
return val;
|
||||
if (defaultValue != null)
|
||||
return defaultValue;
|
||||
throw new IllegalArgumentException("Couldn't find value for extension attribute " + id);
|
||||
throw new IllegalArgumentException("Couldn't find value for extension attribute " + id); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -61,12 +61,12 @@ public class XmlStorage implements ICSettingsStorage {
|
|||
*/
|
||||
public void sanityCheck(ICStorageElement element) throws CoreException {
|
||||
if (element.getValue() != null && element.getValue().trim().length() > 0)
|
||||
throw ExceptionFactory.createCoreException("XmlStorage '" + element.getName() + "' has unexpected child Value: " + element.getValue());
|
||||
throw ExceptionFactory.createCoreException("XmlStorage '" + element.getName() + "' has unexpected child Value: " + element.getValue()); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
for (ICStorageElement child : element.getChildren()) {
|
||||
if (!MODULE_ELEMENT_NAME.equals(child.getName()))
|
||||
throw ExceptionFactory.createCoreException("XmlStorage '" + element.getName() + "' has unexpected child element: " + child.getName());
|
||||
throw ExceptionFactory.createCoreException("XmlStorage '" + element.getName() + "' has unexpected child element: " + child.getName()); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
if (child.getAttribute(MODULE_ID_ATTRIBUTE) == null)
|
||||
throw ExceptionFactory.createCoreException("XmlStorage '" + element.getName() + "' has storageModule child without moduleId");
|
||||
throw ExceptionFactory.createCoreException("XmlStorage '" + element.getName() + "' has storageModule child without moduleId"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -75,7 +75,7 @@ public class XmlStorage implements ICSettingsStorage {
|
|||
}
|
||||
|
||||
/**
|
||||
* Initialise the set of storageModules of this XmlStorage
|
||||
* Initialize the set of storageModules of this XmlStorage
|
||||
*/
|
||||
private void initChildren(){
|
||||
if(fChildrenInited)
|
||||
|
|
Loading…
Add table
Reference in a new issue