Refactor CSV export settings and enhance file handling features with the addition of menu bar's menu items with added functionality
This commit is contained in:
1 parent
4932161b61
commit
8c4990a801
3 files changed
+249
-17
No files matched your search
@@ -1,4 +1,4 @@
|
||||
package cvbuilder.model;
|
||||
package cvbuilder.controller;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@@ -28,6 +28,10 @@ public class CsvExportSettings {
|
||||
}
|
||||
|
||||
public boolean isIncluded(String fieldName) {
|
||||
// Always include name and email regardless of settings
|
||||
if (fieldName.equalsIgnoreCase("name") || fieldName.equalsIgnoreCase("email")) {
|
||||
return true;
|
||||
}
|
||||
return includeMap.getOrDefault(fieldName.toLowerCase(), true);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user