MCPcopy Create free account
hub / github.com/badvision/jace / onSaveClicked

Method onSaveClicked

src/main/java/jace/ide/IdeController.java:199–207  ·  view source on GitHub ↗
(ActionEvent event)

Source from the content-addressed store, hash-verified

197 }
198
199 @FXML
200 void onSaveClicked(ActionEvent event) {
201 getCurrentProgram().ifPresent(program -> {
202 program.save(
203 program.getFile()
204 .orElseGet(() -> chooseFileToSave(program.getType())));
205 getCurrentTab().get().setText(program.getName());
206 });
207 }
208
209 private File chooseFileToSave(DocumentType type) {
210 FileChooser chooser = new FileChooser();

Callers

nothing calls this directly

Calls 8

getCurrentProgramMethod · 0.95
chooseFileToSaveMethod · 0.95
getCurrentTabMethod · 0.95
saveMethod · 0.80
getFileMethod · 0.80
getNameMethod · 0.65
getTypeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected