Skip to content

Commit

Permalink
Default offerte footer text in application
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard van Heest authored and Richard van Heest committed Jul 26, 2015
1 parent 509fa92 commit adec6e8
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.rekeningsysteem.ui.offerte;

import org.rekeningsysteem.logic.offerte.DefaultOfferteTextHandler;
import org.rekeningsysteem.ui.WorkingPane;
import org.rekeningsysteem.ui.WorkingPaneController;

Expand Down Expand Up @@ -30,6 +31,13 @@ public String getTitle() {

this.ui = ui;
this.model = this.ui.getText();

DefaultOfferteTextHandler textHandler = new DefaultOfferteTextHandler();
String text = textHandler.getDefaultText();
if (!text.startsWith("\n\n")) {
text = "\n\n" + text;
}
this.ui.setText(text);
}

public Observable<String> getModel() {
Expand Down

0 comments on commit adec6e8

Please sign in to comment.