|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |