|
|
|
@ -21,6 +21,8 @@ import com.fr.form.main.Form;
|
|
|
|
|
import com.fr.form.ui.container.WBorderLayout; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.report.util.ReadXmlType; |
|
|
|
|
import com.fr.report.util.ReadXmlTypeLocalManager; |
|
|
|
|
import com.fr.stable.Constants; |
|
|
|
|
import com.fr.stable.bridge.StableFactory; |
|
|
|
|
import org.jetbrains.annotations.Nullable; |
|
|
|
@ -90,13 +92,16 @@ class FormApp extends AbstractAppProvider {
|
|
|
|
|
|
|
|
|
|
@Nullable |
|
|
|
|
private Form getForm(FILE tplFile) { |
|
|
|
|
ReadXmlTypeLocalManager.setReadXmlType(ReadXmlType.DESIGN); |
|
|
|
|
Form form = asIOFile(tplFile); |
|
|
|
|
ReadXmlTypeLocalManager.remove(); |
|
|
|
|
if (form != null) { |
|
|
|
|
DesignerAppUtils.dealWithTemplateIOError(tplFile.getPath()); |
|
|
|
|
} |
|
|
|
|
return form; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Form asIOFile(FILE file) { |
|
|
|
|
|
|
|
|
|