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

Method getCurrentTab

src/main/java/jace/ide/IdeController.java:92–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 }
91
92 public Optional<Tab> getCurrentTab() {
93 return Optional.ofNullable(tabPane.getSelectionModel().getSelectedItem());
94 }
95
96 public Optional<Program> getCurrentProgram() {
97 return getCurrentTab().map(t -> openDocuments.get(t));

Callers 4

onCloseClickedMethod · 0.95
getCurrentProgramMethod · 0.95
onSaveAsClickedMethod · 0.95
onSaveClickedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected