When loading a dbf table there is no option to use customized field names, and I think there is no real reason for not letting doing so with the config dir. In fact, I think the code needed is quite simple, and it has worked perfectly for me: // Added to tables without Layer support, but must be supported alias // here also if (layer == null) { pathToken = Preferences.getAliasDir() + File.separator + dataName; fileAlias = new File(pathToken + ".alias"); } else {
| Operating System | Linux |
| Version | v0.8 |
| Severity | enhancement |
| Resolution | Fixed |
Category
Bugs
Login or create an account to comment.
Comments
When the dbf is loaded from the Project Manager the name of the table is tablename.dbf, so you mush remove the extension before create the var fileAlias.
Now if dataName contains any dot, it gets the substring from the beginning to the last one.
The second version of the patch works correctly, commit it. Just a point. Next time try to avoid mix style changes with the patch itself to do revision easier.