Browse Source

无jira问题

手动合release11
release/11.0
Link.Zhao 2 years ago
parent
commit
44adb7d572
  1. 13
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/AlphaFineFrame.java
  2. 8
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/preview/TemplateShopPane.java
  3. 3
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/TemplateResourceSearchWorkerManager.java

13
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/component/AlphaFineFrame.java

@ -349,7 +349,7 @@ public class AlphaFineFrame extends JFrame {
popupMenu.addPopupMenuListener(new PopupMenuListener() {
@Override
public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
// do nothing
// do nothing
}
@Override
@ -584,7 +584,7 @@ public class AlphaFineFrame extends JFrame {
switchType(CellType.PLUGIN);
break;
case TEMPLATE_SHOP:
TemplateShopPane.getInstance().showPagePane();
TemplateShopPane.getInstance().showResult();
switchType(CellType.TEMPLATE_SHOP);
break;
}
@ -602,9 +602,8 @@ public class AlphaFineFrame extends JFrame {
if (alphaFineConfigManager.isProductDynamics()) {
selectedLabelList.add(new SelectedLabel(PRODUCT_NEWS, CellType.PRODUCT_NEWS));
}
// 默认选中模板商城
if (alphaFineConfigManager.hasTemplateShop()) {
selectedLabelList.add(new SelectedLabel(TEMPLATE_SHOP, CellType.TEMPLATE_SHOP, true));
selectedLabelList.add(new SelectedLabel(TEMPLATE_SHOP, CellType.TEMPLATE_SHOP));
}
if (alphaFineConfigManager.isContainDocument()) {
selectedLabelList.add(new SelectedLabel(HELP, CellType.DOCUMENT));
@ -620,8 +619,8 @@ public class AlphaFineFrame extends JFrame {
}
// 如果不展示模板商城,则list中第一个被选中
if (!alphaFineConfigManager.hasTemplateShop() && !selectedLabelList.isEmpty()) {
// 默认选中第一个tab
if (!selectedLabelList.isEmpty()) {
selectedLabelList.get(0).setSelected(true);
}
@ -1010,4 +1009,4 @@ public class AlphaFineFrame extends JFrame {
QuestionWindow.getInstance().setVisible(true);
}
}
}

8
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/preview/TemplateShopPane.java

@ -71,8 +71,12 @@ public class TemplateShopPane extends JPanel {
}
}
public void showPagePane() {
switchCard(PAGE_PANEL);
public void showResult() {
if (Strings.isEmpty(AlphaFineHelper.getAlphaFineDialog().getSearchText())) {
switchCard(DEFAULT_PAGE_PANEL);
} else {
switchCard(PAGE_PANEL);
}
}
// 打开二级页面,显示详细信息

3
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/TemplateResourceSearchWorkerManager.java

@ -38,13 +38,12 @@ public class TemplateResourceSearchWorkerManager implements SearchManager {
public void doSearch(SearchTextBean searchTextBean) {
checkSearchWork();
searchOver = false;
networkError = false;
this.searchWorker = new SwingWorker<List<TemplateResource>, Void>() {
@Override
protected List<TemplateResource> doInBackground() {
List<TemplateResource> list;
if (!AlphaFineHelper.isNetworkOk() && cellType.isNeedNetWork()) {
if (!AlphaFineHelper.isNetworkOk()) {
networkError = true;
FineLoggerFactory.getLogger().warn("alphaFine network error");
}

Loading…
Cancel
Save