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