|
|
@ -9,7 +9,6 @@ import com.fr.design.utils.DesignUtils; |
|
|
|
import com.fr.file.FILE; |
|
|
|
import com.fr.file.FILE; |
|
|
|
import com.fr.file.FileNodeFILE; |
|
|
|
import com.fr.file.FileNodeFILE; |
|
|
|
import com.fr.general.GeneralUtils; |
|
|
|
import com.fr.general.GeneralUtils; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.general.web.ParameterConstants; |
|
|
|
import com.fr.general.web.ParameterConstants; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
import com.fr.stable.web.AbstractWebletCreator; |
|
|
|
import com.fr.stable.web.AbstractWebletCreator; |
|
|
@ -82,6 +81,7 @@ public final class WebPreviewUtils { |
|
|
|
String path = currentTemplate.getPath(); |
|
|
|
String path = currentTemplate.getPath(); |
|
|
|
if (path.startsWith(ProjectConstants.REPORTLETS_NAME)) { |
|
|
|
if (path.startsWith(ProjectConstants.REPORTLETS_NAME)) { |
|
|
|
path = path.substring(ProjectConstants.REPORTLETS_NAME.length() + 1); |
|
|
|
path = path.substring(ProjectConstants.REPORTLETS_NAME.length() + 1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
java.util.List<String> parameterNameList = new java.util.ArrayList<String>(); |
|
|
|
java.util.List<String> parameterNameList = new java.util.ArrayList<String>(); |
|
|
|
java.util.List<String> parameterValueList = new java.util.ArrayList<String>(); |
|
|
|
java.util.List<String> parameterValueList = new java.util.ArrayList<String>(); |
|
|
@ -102,7 +102,6 @@ public final class WebPreviewUtils { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
DesignUtils.visitEnvServerByParameters(baseRoute, parameterNameList.toArray(new String[parameterNameList.size()]), parameterValueList.toArray(new String[parameterValueList.size()])); |
|
|
|
DesignUtils.visitEnvServerByParameters(baseRoute, parameterNameList.toArray(new String[parameterNameList.size()]), parameterValueList.toArray(new String[parameterValueList.size()])); |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
int selVal = JOptionPane.showConfirmDialog(DesignerContext.getDesignerFrame(), com.fr.design.i18n.Toolkit.i18nText("Web_Preview_Message"), |
|
|
|
int selVal = JOptionPane.showConfirmDialog(DesignerContext.getDesignerFrame(), com.fr.design.i18n.Toolkit.i18nText("Web_Preview_Message"), |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Preview_ToolTips"), JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Preview_ToolTips"), JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); |
|
|
|