|
|
|
@ -19,7 +19,6 @@ import javafx.stage.Modality;
|
|
|
|
|
import javafx.stage.Stage;
|
|
|
|
|
import javafx.stage.WindowEvent;
|
|
|
|
|
import xyz.wbsite.dbtool.Application;
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.JavaFxApplication;
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.ctrl.*;
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.enums.DataBase;
|
|
|
|
|
import xyz.wbsite.dbtool.javafx.listener.GenerateOptionListener;
|
|
|
|
@ -671,6 +670,24 @@ public class Dialog {
|
|
|
|
|
popup.show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void showVueAdmin() {
|
|
|
|
|
ProjectManager dBmanger = ManagerFactory.getdBManager();
|
|
|
|
|
DirectoryChooser directoryChooser = new DirectoryChooser();
|
|
|
|
|
directoryChooser.setInitialDirectory(dBmanger.getPath());
|
|
|
|
|
Stage stage = new Stage();
|
|
|
|
|
File file = directoryChooser.showDialog(stage);
|
|
|
|
|
if (file != null) {
|
|
|
|
|
System.out.println("生成目录:" + file.getAbsolutePath());
|
|
|
|
|
|
|
|
|
|
Platform.runLater(new Runnable() {
|
|
|
|
|
@Override
|
|
|
|
|
public void run() {
|
|
|
|
|
stage.close();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static void check(OptionApiController controller, boolean check, String key) {
|
|
|
|
|
for (Api api : controller.getData()) {
|
|
|
|
|
if (api.getMethod().endsWith(key) || (key.equals(".api.") && api.getMethod().contains(".api."))) {
|
|
|
|
|