|
|
@ -584,7 +584,7 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
switchType(CellType.PLUGIN); |
|
|
|
switchType(CellType.PLUGIN); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case TEMPLATE_SHOP: |
|
|
|
case TEMPLATE_SHOP: |
|
|
|
TemplateShopPane.getInstance().showPagePane(); |
|
|
|
TemplateShopPane.getInstance().showResult(); |
|
|
|
switchType(CellType.TEMPLATE_SHOP); |
|
|
|
switchType(CellType.TEMPLATE_SHOP); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
@ -602,9 +602,8 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
if (alphaFineConfigManager.isProductDynamics()) { |
|
|
|
if (alphaFineConfigManager.isProductDynamics()) { |
|
|
|
selectedLabelList.add(new SelectedLabel(PRODUCT_NEWS, CellType.PRODUCT_NEWS)); |
|
|
|
selectedLabelList.add(new SelectedLabel(PRODUCT_NEWS, CellType.PRODUCT_NEWS)); |
|
|
|
} |
|
|
|
} |
|
|
|
// 默认选中模板商城
|
|
|
|
|
|
|
|
if (alphaFineConfigManager.hasTemplateShop()) { |
|
|
|
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()) { |
|
|
|
if (alphaFineConfigManager.isContainDocument()) { |
|
|
|
selectedLabelList.add(new SelectedLabel(HELP, CellType.DOCUMENT)); |
|
|
|
selectedLabelList.add(new SelectedLabel(HELP, CellType.DOCUMENT)); |
|
|
@ -620,8 +619,8 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 如果不展示模板商城,则list中第一个被选中
|
|
|
|
// 默认选中第一个tab
|
|
|
|
if (!alphaFineConfigManager.hasTemplateShop() && !selectedLabelList.isEmpty()) { |
|
|
|
if (!selectedLabelList.isEmpty()) { |
|
|
|
selectedLabelList.get(0).setSelected(true); |
|
|
|
selectedLabelList.get(0).setSelected(true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|