2024年3月10日17:07:17
parent
35d768dbd9
commit
46d1bd7e63
|
|
@ -23,4 +23,8 @@ public class MiniToolsApplication extends Application {
|
|||
primaryStage.setTitle("javafx minio 工具");
|
||||
primaryStage.show();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
launch(args);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,15 +0,0 @@
|
|||
package com.zhangmeng.minio;
|
||||
|
||||
import javafx.application.Application;
|
||||
|
||||
/**
|
||||
* @author zhangmeng
|
||||
* @version 1.0
|
||||
* @date 2024-03-10 15:56
|
||||
*/
|
||||
public class Start {
|
||||
public static void main(String[] args) {
|
||||
Application.launch(MiniToolsApplication.class,args);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,9 +1,7 @@
|
|||
package com.zhangmeng.minio.controller;
|
||||
|
||||
import com.google.common.reflect.ClassPath;
|
||||
import com.zhangmeng.minio.model.BucketFile;
|
||||
import com.zhangmeng.minio.utils.AlertUtils;
|
||||
import com.zhangmeng.minio.utils.EventBusUtils;
|
||||
import com.zhangmeng.minio.utils.MinioUtils;
|
||||
import io.minio.messages.Bucket;
|
||||
import javafx.beans.value.ChangeListener;
|
||||
|
|
@ -21,7 +19,6 @@ import javafx.scene.input.KeyCombination;
|
|||
import javafx.scene.layout.AnchorPane;
|
||||
import javafx.stage.FileChooser;
|
||||
import javafx.stage.Stage;
|
||||
import org.apache.commons.lang3.ClassPathUtils;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.URL;
|
||||
|
|
@ -98,10 +95,6 @@ public class MinioController {
|
|||
|
||||
private File upload_file;
|
||||
|
||||
public MinioController() {
|
||||
EventBusUtils.getDefault().register(this);
|
||||
}
|
||||
|
||||
@FXML
|
||||
public void initialize() {
|
||||
tableview.setItems(list);
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
package com.zhangmeng.minio.utils;
|
||||
|
||||
import com.google.common.eventbus.EventBus;
|
||||
|
||||
/**
|
||||
* @author zhangmeng
|
||||
* @version 1.0
|
||||
* @date 2024-03-08 10:00
|
||||
*/
|
||||
public class EventBusUtils {
|
||||
|
||||
private EventBusUtils (){
|
||||
|
||||
}
|
||||
|
||||
private final static EventBus EVENT_BUS = new EventBus();
|
||||
|
||||
public static EventBus getDefault(){
|
||||
return EVENT_BUS;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,5 @@
|
|||
package com.zhangmeng.minio.utils;
|
||||
|
||||
import com.google.common.io.Files;
|
||||
import com.zhangmeng.minio.model.BucketFile;
|
||||
import io.minio.*;
|
||||
import io.minio.http.Method;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* @author zhangmeng
|
||||
* @date 2024-03-10 17:02
|
||||
* @version 1.0
|
||||
*/
|
||||
open module javafx.tools.minio {
|
||||
requires javafx.fxml;
|
||||
requires javafx.controls;
|
||||
requires javafx.base;
|
||||
requires minio;
|
||||
requires lombok;
|
||||
requires com.fasterxml.jackson.core;
|
||||
requires tika.core;
|
||||
requires org.apache.commons.lang3;
|
||||
}
|
||||
Loading…
Reference in New Issue