- Timestamp:
- 2022-07-22T10:57:20+12:00 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/cdm/TranslationView.java
r36254 r36299 231 231 return type; 232 232 } 233 public String getNameOld() {234 if(content instanceof Index) {235 return StaticStrings.STOP_CHARACTER + ((Index)content).getID();236 }237 // level238 else if (content instanceof IndexOption) {239 return StaticStrings.STOP_CHARACTER + ((IndexOption)content).getName();240 }241 else if (content instanceof SubcollectionIndex) {242 return StaticStrings.STOP_CHARACTER + ((SubcollectionIndex)content).getID();243 }244 else {245 return content.toString();246 }247 }248 233 249 234 public String toString() { … … 256 241 text = Dictionary.get("CDM.TranslationManager.Type_general")+": "+temp; 257 242 } 258 // if(temp.indexOf(StaticStrings.SPACE_CHARACTER) != -1) {259 // temp = temp.substring(0, temp.indexOf(StaticStrings.SPACE_CHARACTER));260 // }261 // if(content instanceof Index) {262 // text = INDEX_STR + temp;263 // }264 // else if (content instanceof IndexOption) {265 // text = LEVEL_STR + temp;266 // }267 // else if(content instanceof SubcollectionIndex) {268 // text = PARTITION_STR + temp;269 // }270 // else {271 // text = GENERAL_STR + temp;272 // }273 243 } 274 244 return text;
Note:
See TracChangeset
for help on using the changeset viewer.