Add comment toggle feature

This commit is contained in:
2021-02-23 16:44:26 +01:00
parent 0ba350395b
commit 302b10a5a6
9 changed files with 170 additions and 5 deletions

View File

@@ -45,7 +45,7 @@
</items>
</Menu>
<SeparatorMenuItem/>
<MenuItem mnemonicParsing="false" text="Exit" accelerator="Shortcut+w"/>
<MenuItem mnemonicParsing="false" text="Exit" accelerator="Shortcut+w" onAction="#handleExitApplication"/>
</items>
</Menu>
<Menu mnemonicParsing="false" text="Edit">
@@ -60,7 +60,7 @@
<MenuItem mnemonicParsing="false" text="Find" accelerator="Shortcut+f"/>
<MenuItem mnemonicParsing="false" text="Replace" accelerator="Shortcut+h"/>
<SeparatorMenuItem/>
<MenuItem mnemonicParsing="false" text="Toggle line comment" accelerator="Shortcut+k"/>
<MenuItem mnemonicParsing="false" text="Toggle line comment" accelerator="Shortcut+k" onAction="#handleToggleComment"/>
</items>
</Menu>
<Menu mnemonicParsing="false" text="Help">

View File

@@ -12,6 +12,7 @@
alignment="CENTER_LEFT">
<Label text="Modeline :)"/>
<Region HBox.hgrow="ALWAYS"/>
<Label fx:id="saveState" text="Saved!"/>
<Label fx:id="columnrow" text="[y:x]"/>
<Label fx:id="language" text="Java"/>