|
|
@ -69,7 +69,7 @@ public class RecentSearchManager implements AlphaFineSearchProvider { |
|
|
|
this.recentModelList = new SearchResult(); |
|
|
|
this.recentModelList = new SearchResult(); |
|
|
|
SearchResult modelList = new SearchResult(); |
|
|
|
SearchResult modelList = new SearchResult(); |
|
|
|
for (String aSearchText : searchText) { |
|
|
|
for (String aSearchText : searchText) { |
|
|
|
getRecentModelList(aSearchText); |
|
|
|
addToRecentModelList(aSearchText); |
|
|
|
} |
|
|
|
} |
|
|
|
if (recentModelList != null && recentModelList.size() > 0) { |
|
|
|
if (recentModelList != null && recentModelList.size() > 0) { |
|
|
|
modelList.add(new MoreModel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_AlphaFine_Latest"))); |
|
|
|
modelList.add(new MoreModel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_AlphaFine_Latest"))); |
|
|
@ -87,8 +87,12 @@ public class RecentSearchManager implements AlphaFineSearchProvider { |
|
|
|
return new SearchResult(); |
|
|
|
return new SearchResult(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private synchronized SearchResult getRecentModelList(String searchText) { |
|
|
|
/** |
|
|
|
return searchBySort(searchText); |
|
|
|
* 将单次遍历的关键词的搜索结果添加到结果集中 |
|
|
|
|
|
|
|
* @param searchText |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
private synchronized void addToRecentModelList(String searchText) { |
|
|
|
|
|
|
|
searchBySort(searchText); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public List<AlphaCellModel> getRecentModelList() { |
|
|
|
public List<AlphaCellModel> getRecentModelList() { |
|
|
|