|
|
|
@ -73,6 +73,22 @@ public final class WebPreviewUtils {
|
|
|
|
|
FILE currentTemplate = jt.getEditingFILE(); |
|
|
|
|
// carl:是否是保存在运行环境下的模板,不是就不能被预览
|
|
|
|
|
if (currentTemplate instanceof FileNodeFILE) { |
|
|
|
|
// 判断下模板是否存在 不存在先提示
|
|
|
|
|
if (!currentTemplate.exists()) { |
|
|
|
|
int selVal = showConfirmDialog( |
|
|
|
|
DesignerContext.getDesignerFrame(), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Web_Preview_Message"), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Basic_Preview_Tool_Tips"), |
|
|
|
|
OK_CANCEL_OPTION, |
|
|
|
|
WARNING_MESSAGE |
|
|
|
|
); |
|
|
|
|
if (OK_OPTION == selVal) { |
|
|
|
|
if (!jt.saveAsTemplate()) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
currentTemplate = jt.getEditingFILE(); |
|
|
|
|
} |
|
|
|
|
browseUrl(currentTemplate, baseRoute, map, actionType, jt); |
|
|
|
|
} else { |
|
|
|
|
// 说明模板没有保存在报表运行环境下面,提示用户
|
|
|
|
|