Browse Source

alphafine交互优化

master
XiaXiang 7 years ago
parent
commit
c0cc670203
  1. 3
      designer/src/com/fr/design/mainframe/alphafine/search/manager/ActionSearchManager.java
  2. 3
      designer/src/com/fr/design/mainframe/alphafine/search/manager/DocumentSearchManager.java
  3. 3
      designer/src/com/fr/design/mainframe/alphafine/search/manager/FileSearchManager.java
  4. 3
      designer/src/com/fr/design/mainframe/alphafine/search/manager/PluginSearchManager.java

3
designer/src/com/fr/design/mainframe/alphafine/search/manager/ActionSearchManager.java

@ -75,6 +75,9 @@ public class ActionSearchManager implements AlphaFineSearchProcessor {
result.add(object);
}
}
if (result.size() == 0) {
return lessModelList;
}
if (result.size() > 0 && result.size() < AlphaFineConstants.SHOW_SIZE + 1) {
lessModelList.add(0, new MoreModel(Inter.getLocText("FR-Designer_Set")));
lessModelList.addAll(result);

3
designer/src/com/fr/design/mainframe/alphafine/search/manager/DocumentSearchManager.java

@ -76,6 +76,9 @@ public class DocumentSearchManager implements AlphaFineSearchProcessor {
searchResult.add(cellModel);
}
}
if (searchResult.size() == 0) {
return lessModelList;
}
if (searchResult.size() > 0 && searchResult.size() < AlphaFineConstants.SHOW_SIZE + 1) {
lessModelList.add(0, new MoreModel(Inter.getLocText("FR-Designer_COMMUNITY_HELP")));
lessModelList.addAll(searchResult);

3
designer/src/com/fr/design/mainframe/alphafine/search/manager/FileSearchManager.java

@ -100,6 +100,9 @@ public class FileSearchManager implements AlphaFineSearchProcessor {
}
}
if (result.size() == 0) {
return lessModelList;
}
if (result.size() > 0 && result.size() < AlphaFineConstants.SHOW_SIZE + 1) {
lessModelList.add(0, new MoreModel(Inter.getLocText("FR-Designer_Templates")));
lessModelList.addAll(result);

3
designer/src/com/fr/design/mainframe/alphafine/search/manager/PluginSearchManager.java

@ -109,6 +109,9 @@ public class PluginSearchManager implements AlphaFineSearchProcessor {
searchResult.add(cellModel);
}
}
if (searchResult.size() == 0) {
return this.lessModelList;
}
if (searchResult.size() > 0 && searchResult.size() < AlphaFineConstants.SHOW_SIZE + 1) {
lessModelList.add(0, new MoreModel(Inter.getLocText("FR-Designer_Templates")));
lessModelList.addAll(searchResult);

Loading…
Cancel
Save