fixup! Clean up MarkdownFile Kotlin implementation
This commit is contained in:
parent
5595ca7ee3
commit
a887a5b06a
1 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ public class MarkdownPresenterImpl implements MarkdownPresenter {
|
||||||
public MarkdownPresenterImpl(ErrorHandler errorHandler) {
|
public MarkdownPresenterImpl(ErrorHandler errorHandler) {
|
||||||
this.errorHandler = errorHandler;
|
this.errorHandler = errorHandler;
|
||||||
synchronized (fileLock) {
|
synchronized (fileLock) {
|
||||||
this.file = new MarkdownFile(errorHandler);
|
this.file = new MarkdownFile();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ public class MarkdownPresenterImpl implements MarkdownPresenter {
|
||||||
boolean replaceCurrentFile
|
boolean replaceCurrentFile
|
||||||
) {
|
) {
|
||||||
Runnable fileLoader = () -> {
|
Runnable fileLoader = () -> {
|
||||||
MarkdownFile tmpFile = new MarkdownFile(errorHandler);
|
MarkdownFile tmpFile = new MarkdownFile();
|
||||||
if (tmpFile.load(fileName, in)) {
|
if (tmpFile.load(fileName, in)) {
|
||||||
if (listener != null) {
|
if (listener != null) {
|
||||||
String html = generateHTML(tmpFile.getContent());
|
String html = generateHTML(tmpFile.getContent());
|
||||||
|
@ -84,7 +84,7 @@ public class MarkdownPresenterImpl implements MarkdownPresenter {
|
||||||
currentEditView.setTitle(newName);
|
currentEditView.setTitle(newName);
|
||||||
currentEditView.setMarkdown("");
|
currentEditView.setMarkdown("");
|
||||||
}
|
}
|
||||||
file = new MarkdownFile(errorHandler, newName, "");
|
file = new MarkdownFile(newName, "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue