|
|
|
@ -199,6 +199,8 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
|
|
|
|
|
|
|
|
|
|
private DesignerLoginConfigManager designerLoginConfigManager = DesignerLoginConfigManager.getInstance(); |
|
|
|
|
|
|
|
|
|
private boolean showTemplateMissingPlugin = true; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* DesignerEnvManager. |
|
|
|
|
*/ |
|
|
|
@ -315,8 +317,8 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
|
|
|
|
|
} |
|
|
|
|
LogHandler handler = new LogHandler<FileAppender>() { |
|
|
|
|
final FileAppender appender = new FileAppender( |
|
|
|
|
new com.fr.third.apache.log4j.PatternLayout("%d{HH:mm:ss} %t %p [%c] %m%n"), |
|
|
|
|
fileName |
|
|
|
|
new com.fr.third.apache.log4j.PatternLayout("%d{HH:mm:ss} %t %p [%c] %m%n"), |
|
|
|
|
fileName |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -621,6 +623,24 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
|
|
|
|
|
this.templateTreePaneExpanded = templateTreePaneExpanded; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 是否提示模板缺少插件 |
|
|
|
|
* |
|
|
|
|
* @return 提示返回true |
|
|
|
|
*/ |
|
|
|
|
public boolean isShowTemplateMissingPlugin() { |
|
|
|
|
return showTemplateMissingPlugin; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 设置是否提示模板缺少插件 |
|
|
|
|
* |
|
|
|
|
* @param showTemplateMissingPlugin 是否提示 |
|
|
|
|
*/ |
|
|
|
|
public void setShowTemplateMissingPlugin(boolean showTemplateMissingPlugin) { |
|
|
|
|
this.showTemplateMissingPlugin = showTemplateMissingPlugin; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 知否自动备份 |
|
|
|
|
* |
|
|
|
@ -1698,7 +1718,7 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void readComponentReuseNotificationInfo(XMLableReader reader){ |
|
|
|
|
private void readComponentReuseNotificationInfo(XMLableReader reader) { |
|
|
|
|
reader.readXMLObject(this.notificationInfo); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -1792,6 +1812,7 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
|
|
|
|
|
this.setRecentSelectedConnection(tmpVal); |
|
|
|
|
} |
|
|
|
|
this.setEmbedServerLazyStartup(reader.getAttrAsBoolean("embedServerLazyStartup", false)); |
|
|
|
|
this.setShowTemplateMissingPlugin(reader.getAttrAsBoolean("showTemplateMissingPlugin", true)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void readReportPaneAttributions(XMLableReader reader) { |
|
|
|
@ -2060,6 +2081,9 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
|
|
|
|
|
if (this.isEmbedServerLazyStartup()) { |
|
|
|
|
writer.attr("embedServerLazyStartup", this.isEmbedServerLazyStartup()); |
|
|
|
|
} |
|
|
|
|
if (!this.isShowTemplateMissingPlugin()) { |
|
|
|
|
writer.attr("showTemplateMissingPlugin", this.isShowTemplateMissingPlugin()); |
|
|
|
|
} |
|
|
|
|
writer.end(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2212,11 +2236,12 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
|
|
|
|
|
|
|
|
|
|
enum XmlHandler { |
|
|
|
|
Self; |
|
|
|
|
|
|
|
|
|
public void handle(Throwable throwable) { |
|
|
|
|
ErrorDialog dialog = new ErrorDialog(null, |
|
|
|
|
Toolkit.i18nText("Fine-Design_Error_Start_Apology_Message"), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Error_Start_Report"), |
|
|
|
|
throwable.getMessage()) { |
|
|
|
|
Toolkit.i18nText("Fine-Design_Error_Start_Apology_Message"), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Error_Start_Report"), |
|
|
|
|
throwable.getMessage()) { |
|
|
|
|
@Override |
|
|
|
|
protected void okEvent() { |
|
|
|
|
dispose(); |
|
|
|
@ -2232,5 +2257,5 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
|
|
|
|
|
dialog.setVisible(true); |
|
|
|
|
DesignerExiter.getInstance().execute(); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|