optimize
This commit is contained in:
parent
4b23560a46
commit
4057fd6cae
@ -874,7 +874,7 @@ public class B3
|
|||||||
box.getChildren().addAll(this.addCurrentDateToDatabaseNameCB, this.generateInsertsCB, this.singleInsertStatementCB, this.saveSQLScriptBTN);
|
box.getChildren().addAll(this.addCurrentDateToDatabaseNameCB, this.generateInsertsCB, this.singleInsertStatementCB, this.saveSQLScriptBTN);
|
||||||
TitledPane createddl = new TitledPane("Create DDL", box);
|
TitledPane createddl = new TitledPane("Create DDL", box);
|
||||||
createddl.setExpanded(false);
|
createddl.setExpanded(false);
|
||||||
this.buttonPane.add(createddl, 0, ri++, 2, 1);
|
this.buttonPane.add(createddl, 0, ri, 2, 1);
|
||||||
|
|
||||||
this.statusInformation = new TextField("Creation Mode: entity-set -> press left mouse button on working area -> enter name of entity-set -> press enter key");
|
this.statusInformation = new TextField("Creation Mode: entity-set -> press left mouse button on working area -> enter name of entity-set -> press enter key");
|
||||||
this.statusInformation.setEditable(false);
|
this.statusInformation.setEditable(false);
|
||||||
@ -1167,7 +1167,7 @@ public class B3
|
|||||||
LocalDate today = LocalDate.now();
|
LocalDate today = LocalDate.now();
|
||||||
String currentDate = "";
|
String currentDate = "";
|
||||||
if (this.addCurrentDateToDatabaseNameCB.isSelected()) {
|
if (this.addCurrentDateToDatabaseNameCB.isSelected()) {
|
||||||
currentDate = today.getYear() + ((today.getMonthValue() < 10) ? ("0" + today.getMonthValue()) : "" + today.getMonthValue()) + ((today.getDayOfMonth() < 10) ? ("0" + today.getDayOfMonth()) : "" + today.getDayOfMonth());
|
currentDate = today.getYear() + ((today.getMonthValue() < 10) ? ("0" + today.getMonthValue()) : String.valueOf(today.getMonthValue())) + ((today.getDayOfMonth() < 10) ? ("0" + today.getDayOfMonth()) : String.valueOf(today.getDayOfMonth()));
|
||||||
}
|
}
|
||||||
fc.setInitialFileName(currentDate + this.currentTab.canvas.dsfdsfd45645zr().getDatabaseName());
|
fc.setInitialFileName(currentDate + this.currentTab.canvas.dsfdsfd45645zr().getDatabaseName());
|
||||||
fc.getExtensionFilters().add(new FileChooser.ExtensionFilter("*.SQL", "*.sql"));
|
fc.getExtensionFilters().add(new FileChooser.ExtensionFilter("*.SQL", "*.sql"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user