Browse Source

bug fix

master
XiaXiang 8 years ago
parent
commit
46232eb4e1
  1. 2
      designer/src/com/fr/design/mainframe/alphafine/search/manager/ActionSearchManager.java
  2. 2
      designer_base/src/com/fr/design/mainframe/toolbar/UpdateActionModel.java

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

@ -48,7 +48,7 @@ public class ActionSearchManager implements AlphaFineSearchProcessor {
List<UpdateActionModel> updateActions = UpdateActionManager.getUpdateActionManager().getUpdateActions();
for (UpdateActionModel updateActionModel : updateActions) {
if (StringUtils.isNotBlank(updateActionModel.getSearchKey())) {
if (updateActionModel.getSearchKey().toLowerCase().contains(searchText.toLowerCase()) && updateActionModel.getAction().isEnabled()) {
if (updateActionModel.getSearchKey().contains(searchText) && updateActionModel.getAction().isEnabled()) {
filterModelList.add(new ActionModel(updateActionModel.getActionName(), updateActionModel.getParentName(), updateActionModel.getAction()));
}
}

2
designer_base/src/com/fr/design/mainframe/toolbar/UpdateActionModel.java

@ -40,7 +40,7 @@ public class UpdateActionModel {
.append(SEPARATOR).append(PinyinHelper.getShortPinyin(parentName)).append(SEPARATOR)
.append(actionName).append(SEPARATOR).append(PinyinHelper.convertToPinyinString(actionName, "", PinyinFormat.WITHOUT_TONE))
.append(SEPARATOR).append(PinyinHelper.getShortPinyin(actionName)).append(action.getSearchText());
this.searchKey = buffer.toString();
this.searchKey = buffer.toString().toLowerCase();
}
/**

Loading…
Cancel
Save