Skip to content

Commit

Permalink
updated javadoc, renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzfl committed Nov 16, 2016
1 parent 4e68e44 commit 473e5c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/de/moritzf/latexhelper/Gui.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public Gui() {
this.latexSource = new JTextArea();


initUndo();
initUndoRedoFunctionality();

JPanel editorArea = new JPanel();
editorArea.setLayout(new BorderLayout());
Expand Down Expand Up @@ -105,7 +105,10 @@ public Gui() {
this.setVisible(true);
}

private void initUndo(){
/**
* Instantiates a the undo-redo functionality for the textarea.
*/
private void initUndoRedoFunctionality(){
undoManager = new UndoManager();
Document doc = latexSource.getDocument();
doc.addUndoableEditListener(e -> {
Expand Down

0 comments on commit 473e5c1

Please sign in to comment.