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