@ -32,6 +32,7 @@ import com.fr.design.mainframe.share.ui.base.ui.PlaceHolderUI;
import com.fr.design.mainframe.share.util.ShareUIUtils ;
import com.fr.design.mainframe.share.util.ShareUIUtils ;
import com.fr.design.share.effect.EffectItemGroup ;
import com.fr.design.share.effect.EffectItemGroup ;
import com.fr.design.share.utils.ShareDialogUtils ;
import com.fr.design.share.utils.ShareDialogUtils ;
import com.fr.file.FileCommonUtils ;
import com.fr.form.share.DefaultSharableWidget ;
import com.fr.form.share.DefaultSharableWidget ;
import com.fr.form.share.bean.StyleThemeBean ;
import com.fr.form.share.bean.StyleThemeBean ;
import com.fr.form.share.constants.ShareComponentConstants ;
import com.fr.form.share.constants.ShareComponentConstants ;
@ -581,6 +582,15 @@ public class ShareMainPane extends JPanel {
Toolkit . i18nText ( "Fine-Design_Basic_Error" ) , ERROR_MESSAGE , UIManager . getIcon ( "OptionPane.errorIcon" ) ) ;
Toolkit . i18nText ( "Fine-Design_Basic_Error" ) , ERROR_MESSAGE , UIManager . getIcon ( "OptionPane.errorIcon" ) ) ;
return false ;
return false ;
}
}
if ( FileCommonUtils . isFileNameValid ( name ) ) {
FineJOptionPane . showMessageDialog (
shareDialog ,
Toolkit . i18nText ( "Fine-Design_Share_Generate_Failure_Illegal_Component_Name_Tip" ) ,
Toolkit . i18nText ( "Fine-Design_Basic_Error" ) ,
ERROR_MESSAGE ,
UIManager . getIcon ( "OptionPane.errorIcon" ) ) ;
return false ;
}
if ( upload & & StringUtils . isEmpty ( content . getText ( ) ) ) {
if ( upload & & StringUtils . isEmpty ( content . getText ( ) ) ) {
FineJOptionPane . showMessageDialog ( shareDialog , Toolkit . i18nText ( "Fine-Design_Share_Lack_Content" ) ,
FineJOptionPane . showMessageDialog ( shareDialog , Toolkit . i18nText ( "Fine-Design_Share_Lack_Content" ) ,
Toolkit . i18nText ( "Fine-Design_Basic_Error" ) , ERROR_MESSAGE , UIManager . getIcon ( "OptionPane.errorIcon" ) ) ;
Toolkit . i18nText ( "Fine-Design_Basic_Error" ) , ERROR_MESSAGE , UIManager . getIcon ( "OptionPane.errorIcon" ) ) ;