|
|
@ -1468,10 +1468,6 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>> |
|
|
|
return getEditingFILE().getName() + getSuffix(); |
|
|
|
return getEditingFILE().getName() + getSuffix(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public boolean isNewEngineMode(){ |
|
|
|
|
|
|
|
return CptCompileUtil.isNewEngine(this.getTarget(),getEditingFILE().getPath()) || getEditingFILE().getPath().endsWith(".cptx"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String getSuffix() { |
|
|
|
private String getSuffix() { |
|
|
|
if (!CptCompileUtil.isNewEngine(this.getTarget(), getEditingFILE().getPath())){ |
|
|
|
if (!CptCompileUtil.isNewEngine(this.getTarget(), getEditingFILE().getPath())){ |
|
|
|
return StringUtils.EMPTY; |
|
|
|
return StringUtils.EMPTY; |
|
|
|