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