Browse Source

reformat

master
XiaXiang 8 years ago
parent
commit
89da3df264
  1. 2
      designer/src/com/fr/design/mainframe/alphafine/search/manager/RecentSearchManager.java
  2. 2
      designer/src/com/fr/design/mainframe/alphafine/search/manager/RecommendSearchManager.java

2
designer/src/com/fr/design/mainframe/alphafine/search/manager/RecentSearchManager.java

@ -228,7 +228,7 @@ public class RecentSearchManager extends XMLFileManager implements AlphaFineSear
List<AlphaCellModel> resultModelList = new ArrayList<>(recentModelList); List<AlphaCellModel> resultModelList = new ArrayList<>(recentModelList);
int size = resultModelList.size(); int size = resultModelList.size();
for (AlphaCellModel model : resultModelList) { for (AlphaCellModel model : resultModelList) {
if (model.getType() == CellType.ACTION && !((ActionModel)model).getAction().isEnabled()) { if (model.getType() == CellType.ACTION && !((ActionModel) model).getAction().isEnabled()) {
resultModelList.remove(model); resultModelList.remove(model);
} }
} }

2
designer/src/com/fr/design/mainframe/alphafine/search/manager/RecommendSearchManager.java

@ -69,7 +69,7 @@ public class RecommendSearchManager implements AlphaFineSearchProcessor {
FRLogger.getLogger().error("recommend search error! :" + e.getMessage()); FRLogger.getLogger().error("recommend search error! :" + e.getMessage());
} }
for (AlphaCellModel model : recommendModelList) { for (AlphaCellModel model : recommendModelList) {
if (model.getType() == CellType.ACTION && !((ActionModel)model).getAction().isEnabled()) { if (model.getType() == CellType.ACTION && !((ActionModel) model).getAction().isEnabled()) {
recommendModelList.remove(model); recommendModelList.remove(model);
} }
} }

Loading…
Cancel
Save