Remove New Folder feature

This commit is contained in:
Oystein Kristoffer Tveit 2021-04-26 12:46:26 +02:00
parent 08f9b2b881
commit 22406222f3
2 changed files with 1 additions and 7 deletions

View File

@ -61,18 +61,13 @@ public class MenubarController implements Initializable, Controller {
} }
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */
/* CREATE FILE/DIRECTORY */ /* CREATE FILE */
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */
@FXML @FXML
private void handleNewFile() { private void handleNewFile() {
this.eventBus.post(new OpenFileEvent(Optional.empty())); this.eventBus.post(new OpenFileEvent(Optional.empty()));
} }
@FXML
private void handleNewFolder() {
}
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */
/* OPEN FILE/PROJECT */ /* OPEN FILE/PROJECT */
/* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */

View File

@ -19,7 +19,6 @@
<Menu mnemonicParsing="false" text="File"> <Menu mnemonicParsing="false" text="File">
<items> <items>
<MenuItem mnemonicParsing="false" text="New File" accelerator="Shortcut+n" onAction="#handleNewFile"/> <MenuItem mnemonicParsing="false" text="New File" accelerator="Shortcut+n" onAction="#handleNewFile"/>
<MenuItem mnemonicParsing="false" text="New Folder" accelerator="Shortcut+Shift+N" onAction="#handleNewFolder"/>
<SeparatorMenuItem/> <SeparatorMenuItem/>
<MenuItem mnemonicParsing="false" text="Open File" accelerator="Shortcut+o" onAction="#handleOpenFile"/> <MenuItem mnemonicParsing="false" text="Open File" accelerator="Shortcut+o" onAction="#handleOpenFile"/>
<MenuItem mnemonicParsing="false" text="Open Project" accelerator="Shortcut+Shift+O" onAction="#handleOpenProject"/> <MenuItem mnemonicParsing="false" text="Open Project" accelerator="Shortcut+Shift+O" onAction="#handleOpenProject"/>