1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 07:35:24 +02:00

minor miner fix - dataelement naming conventions for folders should be consistent: name should be name, while value should be parent path

This commit is contained in:
David McKnight 2007-04-27 17:58:34 +00:00
parent bf910f21f8
commit bca932fbea

View file

@ -1556,8 +1556,13 @@ private DataElement createDataElementFromLSString(DataElement subject,
}
else { // directory
subject.setAttribute(DE.A_TYPE, IUniversalDataStoreConstants.UNIVERSAL_FOLDER_DESCRIPTOR);
subject.setAttribute(DE.A_NAME, ""); //$NON-NLS-1$
subject.setAttribute(DE.A_VALUE, fullName);
String name = fullName
.substring(
fullName.lastIndexOf(File.separatorChar) + 1,
fullName.length());
String path = fullName.substring(0, fullName.lastIndexOf(File.separatorChar));
subject.setAttribute(DE.A_NAME, name);
subject.setAttribute(DE.A_VALUE, path);
}
// DKM - do basic property stuff here