|
|
@ -14,11 +14,11 @@ import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.locale.InterProviderFactory; |
|
|
|
import com.fr.locale.InterProviderFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.main.impl.WorkBook; |
|
|
|
import com.fr.main.impl.WorkBook; |
|
|
|
import com.fr.nx.cptx.entry.metadata.CptxMetadata; |
|
|
|
|
|
|
|
import com.fr.nx.app.designer.menu.CalculateAttrAction; |
|
|
|
import com.fr.nx.app.designer.menu.CalculateAttrAction; |
|
|
|
import com.fr.nx.app.designer.toolbar.TemplateTransformer; |
|
|
|
import com.fr.nx.app.designer.toolbar.TemplateTransformer; |
|
|
|
import com.fr.nx.app.designer.toolbar.TransformResult; |
|
|
|
import com.fr.nx.app.designer.toolbar.TransformResult; |
|
|
|
import com.fr.nx.app.designer.toolbar.TransformResultInfo; |
|
|
|
import com.fr.nx.app.designer.toolbar.TransformResultInfo; |
|
|
|
|
|
|
|
import com.fr.nx.cptx.entry.metadata.CptxMetadata; |
|
|
|
import com.fr.nx.cptx.utils.CptxFileUtils; |
|
|
|
import com.fr.nx.cptx.utils.CptxFileUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
@ -27,6 +27,7 @@ import com.fr.third.jodd.util.ArraysUtil; |
|
|
|
import java.io.File; |
|
|
|
import java.io.File; |
|
|
|
import java.io.FileOutputStream; |
|
|
|
import java.io.FileOutputStream; |
|
|
|
import java.io.OutputStream; |
|
|
|
import java.io.OutputStream; |
|
|
|
|
|
|
|
import java.nio.file.Paths; |
|
|
|
|
|
|
|
|
|
|
|
public class JStreamBook extends JWorkBook { |
|
|
|
public class JStreamBook extends JWorkBook { |
|
|
|
|
|
|
|
|
|
|
@ -103,7 +104,8 @@ public class JStreamBook extends JWorkBook { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private String getSuffix() { |
|
|
|
private String getSuffix() { |
|
|
|
CptxMetadata metadata = CptxFileUtils.getMetadata(this.getEditingFILE().getPath()); |
|
|
|
String path = this.getEditingFILE().getPath(); |
|
|
|
|
|
|
|
CptxMetadata metadata = Paths.get(path).isAbsolute() ? null : CptxFileUtils.getMetadata(path); |
|
|
|
if (metadata != null && metadata.isForceCpt()) { |
|
|
|
if (metadata != null && metadata.isForceCpt()) { |
|
|
|
return InterProviderFactory.getProvider().getLocText("Fine-Plugin_Engine_Compatibility_Mode"); |
|
|
|
return InterProviderFactory.getProvider().getLocText("Fine-Plugin_Engine_Compatibility_Mode"); |
|
|
|
} |
|
|
|
} |
|
|
|