@ -116,7 +116,7 @@ public class PluginSearchManager implements AlphaFineSearchProvider {
this . searchResult = new SearchResult ( ) ;
this . searchResult = new SearchResult ( ) ;
if ( DesignerEnvManager . getEnvManager ( ) . getAlphaFineConfigManager ( ) . isContainPlugin ( ) ) {
if ( DesignerEnvManager . getEnvManager ( ) . getAlphaFineConfigManager ( ) . isContainPlugin ( ) ) {
if ( ArrayUtils . isEmpty ( searchText ) ) {
if ( ArrayUtils . isEmpty ( searchText ) ) {
lessModelList . add ( new MoreModel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Plugin_Addon" ) ) ) ;
lessModelList . add ( new MoreModel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_AlphaFine_ Plugin_Addon" ) ) ) ;
return lessModelList ;
return lessModelList ;
}
}
SearchResult noConnectList = AlphaFineHelper . getNoConnectList ( Holder . INSTANCE ) ;
SearchResult noConnectList = AlphaFineHelper . getNoConnectList ( Holder . INSTANCE ) ;
@ -147,10 +147,10 @@ public class PluginSearchManager implements AlphaFineSearchProvider {
if ( searchResult . isEmpty ( ) ) {
if ( searchResult . isEmpty ( ) ) {
return this . lessModelList ;
return this . lessModelList ;
} else if ( searchResult . size ( ) < AlphaFineConstants . SHOW_SIZE + 1 ) {
} else if ( searchResult . size ( ) < AlphaFineConstants . SHOW_SIZE + 1 ) {
lessModelList . add ( 0 , new MoreModel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Plugin_Addon" ) ) ) ;
lessModelList . add ( 0 , new MoreModel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_AlphaFine_ Plugin_Addon" ) ) ) ;
lessModelList . addAll ( searchResult ) ;
lessModelList . addAll ( searchResult ) ;
} else {
} else {
lessModelList . add ( 0 , new MoreModel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_Plugin_Addon" ) , com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_AlphaFine_ShowAll" ) , true , CellType . PLUGIN ) ) ;
lessModelList . add ( 0 , new MoreModel ( com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_AlphaFine_ Plugin_Addon" ) , com . fr . design . i18n . Toolkit . i18nText ( "Fine-Design_Report_AlphaFine_ShowAll" ) , true , CellType . PLUGIN ) ) ;
lessModelList . addAll ( searchResult . subList ( 0 , AlphaFineConstants . SHOW_SIZE ) ) ;
lessModelList . addAll ( searchResult . subList ( 0 , AlphaFineConstants . SHOW_SIZE ) ) ;
moreModelList . addAll ( searchResult . subList ( AlphaFineConstants . SHOW_SIZE , searchResult . size ( ) ) ) ;
moreModelList . addAll ( searchResult . subList ( AlphaFineConstants . SHOW_SIZE , searchResult . size ( ) ) ) ;
}
}