Browse Source

rt

research/10.0
XiaXiang 7 years ago
parent
commit
ba74e900f2
  1. 18
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java

18
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/RecentSearchManager.java

@ -185,19 +185,11 @@ public class RecentSearchManager implements AlphaFineSearchProvider {
UpdateAction action = UpdateActionManager.getUpdateActionManager().getActionByName(model.getName());
if (action != null) {
((ActionModel) model).setAction(action);
if (recentModelList.contains(model)) {
continue;
}
recentModelList.add(model);
addModel(model);
}
} else {
if (recentModelList.contains(model)) {
continue;
}
recentModelList.add(model);
addModel(model);
}
}
} catch (Exception e) {
FineLoggerFactory.getLogger().error("local search error: " + e.getMessage());
@ -206,5 +198,11 @@ public class RecentSearchManager implements AlphaFineSearchProvider {
return recentModelList;
}
private void addModel(AlphaCellModel model) {
if (!recentModelList.contains(model)) {
recentModelList.add(model);
}
}
}

Loading…
Cancel
Save