Adding 'exit' and 'change project' buttons to the editor window
This commit is contained in:
parent
d5b40053fb
commit
eb754aecf9
4 changed files with 82 additions and 31 deletions
|
|
@ -34,6 +34,8 @@ public class EditorWindow extends GuiWindow {
|
|||
@FXML private PropertySheet propertySheet;
|
||||
@FXML private Button compileButton;
|
||||
@FXML private Button runButton;
|
||||
@FXML private Button exitButton;
|
||||
@FXML private Button changeProjectButton;
|
||||
|
||||
public EditorWindow() throws IOException{
|
||||
super(EditorWindow.class.getResource("EditorWindow.fxml"));
|
||||
|
|
@ -68,12 +70,19 @@ public class EditorWindow extends GuiWindow {
|
|||
}
|
||||
|
||||
@FXML
|
||||
protected void chageProject(ActionEvent event){
|
||||
protected void handleChangeProject(ActionEvent event){
|
||||
for(EditorWindowListener listener : listsners){
|
||||
listener.changeProject();
|
||||
}
|
||||
}
|
||||
|
||||
@FXML
|
||||
protected void handleExit(ActionEvent event){
|
||||
for(EditorWindowListener listener : listsners){
|
||||
listener.exit();
|
||||
}
|
||||
}
|
||||
|
||||
private void setupFileTreeView(){
|
||||
fileTreeView.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<TreeItem<String>>() {
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue