Changes between Version 9 and Version 10 of NFR_LARGE_RESOURCES_R0
- Timestamp:
- 11/09/09 17:56:56 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NFR_LARGE_RESOURCES_R0
v9 v10 96 96 * If the type is LINKED_ABSOLUTE create a FileBinData with File for the path in the 'src' attribute. 97 97 * If the type is LINKED_RELATIVE, get the path to the resource file it is relative from the PersistenceOptions. It is store when loading in the constant PersistenceUtil.LOCATION. That make FileBinData with file the File for the path stored in the 'src'attribute and parent the path to the resource file. 98 * If it's remote make RemoteBinData with the path to the file stored in the 'src' attribute and Account the stored account(optional).98 * If it's remote make RemoteBinData with the path to the file stored in the 'src' attribute (optional). 99 99 * User inteface: 100 100 * As in the analysis when importing media resources ask the user or link or embed the media. 101 101 * The FileDialog's JFileChooser should be modified to have combo box with options how to import the binary data. 102 102 * JFileChooser can have an accessory component used for additional information when choosing files. 103 * Modify the FileDialogInputto have accessory logic.103 * Modify the [browser:/branches/private/meddle/nfr_large_resources/modules/org.sophie2.main.dialogs.input/src/main/java/org/sophie2/main/dialogs/input/FileDialogInput.java FileDialogInput] to have accessory logic. 104 104 * Make two inner classes in the FileDialogInput: 105 105 * FileAccessory, baseProObject, has two abstract methods: … … 113 113 * When constructing the FileContainer as a result of showing FileDialog, it can be constructed with AccessoryData, which can be null. 114 114 * The FileContainer has method getAccessoryData with one parameter the generic type of the data. 115 * Add new FileAccessory, BinDataChooserin the main.funk.resources module.115 * Add new FileAccessory, [browser:/branches/private/meddle/nfr_large_resources/modules/org.sophie2.main.func.resources/src/main/java/org/sophie2/main/func/resources/imports/bindata/BinDataChooser.java BinDataChooser] in the main.funk.resources module. 116 116 * It has JLabels with information for the user. 117 117 * It has combo bx with choices for embed and link (can be with radio buttons if dido wants :)) 118 118 * It has check box for copying to the '_files' directory. 119 119 * Add new AccessoryData in the same module, its generic type is ImportBinDataType. 120 * Add enumeration ImportBinDataTypein the same module with three choices EMBED, LINK, COPY_AND_LINK. I don't think it is redundant, because the BinDataPersistType another purpose and contains types for remote datas.120 * Add enumeration [browser:/branches/private/meddle/nfr_large_resources/modules/org.sophie2.main.func.resources/src/main/java/org/sophie2/main/func/resources/imports/bindata/ImportBinDataType.java ImportBinDataType] in the same module with three choices EMBED, LINK, COPY_AND_LINK. I don't think it is redundant, because the BinDataPersistType another purpose and contains types for remote datas. 121 121 * When importing media resources between 4 and 16 MB pass the new accessory as accessory to the file dialog. 122 122 * That is easy, modify the ImportManagers of the media resources to pass the accessory. … … 136 136 * [browser:/branches/private/meddle/nfr_large_resources/modules/org.sophie2.main.func.media/src/test/java/org/sophie2/main/func/media/model/resources/MediaPersistenceTest.java MediaPersistenceTest] 137 137 * [browser:/branches/private/meddle/nfr_large_resources/modules/org.sophie2.main.func.file/src/test/java/org/sophie2/main/func/file/dialogs/FileDialogAccessoryDemo.java FileDialogAccessoryDemo] 138 * [browser:/branches/private/meddle/nfr_large_resources/modules/org.sophie2.main.func.resources/src/test/java/org/sophie2/main/func/resources/imports/bindata/BinDataChooserDemo.java BinDataChooserDemo] 138 139 * Branch in the track browser: 139 140 * [browser:/branches/private/meddle/nfr_large_resources]