Changes between Version 22 and Version 23 of RESOURCES_EXPORT_IMPORT_R0
- Timestamp:
- 10/26/09 12:34:17 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RESOURCES_EXPORT_IMPORT_R0
v22 v23 101 101 * There will be one interface for exporting of resources ResourceExportManager, and there will be an extension point in the func.resources module for it. 102 102 * The manager will have method {{{boolean export(ResourceAccess access, File file)}}} which will export the given resource represented by the access into the passed file. 103 * The manager will have {{{getResourceKind}}} method and {{{getFileFilter}}} method too, it will have {{{getExportRole}}} method which will give a description on the export of the 103 * The manager will have {{{getResourceKind}}} method and {{{getFileFilter}}} method too, it will have {{{getExportFormat method which will give a description on the export of the resource. 104 * The manager will be able to provide good example name of the file to save. 104 105 * The {{{getResourceKind}}} of the interface will have special role, if the kind is just the {{{resourceR4.KIND}}} kind, it will mean that the export manager will be able to export any resource to it's format. 105 106 * In the func.resources module there will be one implementation for SophieFormatExportManager. It will be able to export any resource to the Sophie 2.0 format: 106 107 * Problem will be that the exported resources will not contain their outer references, but in the future, the persistence will support caching of resources in the format, so for now that works. 107 108 * Other problem is that there are no sub revisions, so to persist the resources a new top access for them will be created by the their sub-model in the book. 109 * ExportFormatDialog : One resource can be exported to one or more formats, so before exporting it the right format should be chosen by the user, this dialog will provide such choice. 110 * ResourceExportLogic : This logic will handle resource exporting... for now there will be only one handler for events from the export button in the resource's tab. The logic will try to find all registered export managers of the selected to export resource and will bring up the ExportFormatDialog. Then a FileDialog with filter for the chosen format will be shown to the user. The user will be notified if the export was succesfull. 108 111 109 112 = Implementation =