- Timestamp:
- 2004-08-24T15:03:16+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/msm/MetadataSetManager.java
r7573 r8035 537 537 return value_tree; 538 538 } 539 /** This method is called to import a metadata set. First a prompt is displayed to gather necessary details such as which metadata set to import. Once this information is gathered the method <i>importMDS(File)</i> is called with the appropriate filename.540 * @return A boolean which is <i>true</i> if the metadata set has been imported successfully, <i>false</i> otherwise.541 */542 public boolean importMDS() {543 JFileChooser chooser = new JFileChooser(new File(Utility.METADATA_DIR));544 javax.swing.filechooser.FileFilter filter = new MDSFileFilter();545 chooser.setFileFilter(filter);546 int returnVal = chooser.showDialog(Gatherer.g_man, Dictionary.get("MSMPrompt.File_Import"));547 if(returnVal == JFileChooser.APPROVE_OPTION) {548 return importMDS(chooser.getSelectedFile(), true);549 }550 return false;551 }552 539 553 540 public boolean importMDS(File mds_file, boolean user_driven) {
Note:
See TracChangeset
for help on using the changeset viewer.