|
|
@ -406,8 +406,11 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>> |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void setTargetByFile(FILE file) { |
|
|
|
private void setTargetByFile(FILE file) { |
|
|
|
this.template = JTemplateFactory.asIOFile(file, this.suffix()); |
|
|
|
T newTemplate = JTemplateFactory.asIOFile(file, this.suffix()); |
|
|
|
setTarget(this.template); |
|
|
|
if (newTemplate != null) { |
|
|
|
|
|
|
|
this.template = newTemplate; |
|
|
|
|
|
|
|
setTarget(this.template); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void addCenterPane() { |
|
|
|
private void addCenterPane() { |
|
|
|