public void exportBookJSON() {
try {
String ext = "*.json";
String name = "JSON File";
FileDialog dialog = new FileDialog(shell, SWT.SAVE);
dialog.setFilterNames(new String[]{name});
dialog.setFilterExtensions(new String[]{ext});
dialog.setFileName("books.json");
String path = dialog.open();
if (path != null) {
File f = new File(path);
audibleGUI.audible.export(f);
if (f.exists())
logger.info("exported books to: "+f.getAbsolutePath());
}
} catch (Exception e) {
MessageBoxFactory.showError(shell, e.getMessage());
}
}
Application.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:openaudible
作者:
评论列表
文章目录