@ -199,6 +199,8 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
private DesignerLoginConfigManager designerLoginConfigManager = DesignerLoginConfigManager . getInstance ( ) ;
private boolean showTemplateMissingPlugin = true ;
/ * *
* DesignerEnvManager .
* /
@ -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 ;
}
/ * *
* 知否自动备份
*
@ -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,6 +2236,7 @@ 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" ) ,
@ -2232,5 +2257,5 @@ public class DesignerEnvManager implements XMLReadable, XMLWriter {
dialog . setVisible ( true ) ;
DesignerExiter . getInstance ( ) . execute ( ) ;
}
} ;
}
}