You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.7 KiB
59 lines
1.7 KiB
package com.fr.design.actions.community; |
|
|
|
import com.fr.base.BaseUtils; |
|
import com.fr.design.i18n.LocaleLinkProvider; |
|
import com.fr.design.login.AbstractDesignerSSO; |
|
import com.fr.design.mainframe.share.collect.ComponentCollector; |
|
import com.fr.design.menu.MenuKeySet; |
|
|
|
import javax.swing.KeyStroke; |
|
|
|
/** |
|
* created by Harrison on 2020/03/24 |
|
**/ |
|
public class TemplateStoreAction extends AbstractDesignerSSO { |
|
|
|
/** |
|
* 云中心组件商城模板在配置文件中对应的配置文件key |
|
*/ |
|
private static final String PROPS_LINK_KEY = "Fine-Design-CloudCenter_Market_Template"; |
|
|
|
/** |
|
* 云中心组件商城模板默认链接在配置文件中对应的配置文件key |
|
*/ |
|
private static final String PROPS_LINK_KEY_DEFAULT = "Fine-Design-CloudCenter_Market_Template_Default"; |
|
|
|
public TemplateStoreAction() { |
|
|
|
this.setMenuKeySet(TEMPLATE); |
|
this.setName(getMenuKeySet().getMenuName()); |
|
this.setMnemonic(getMenuKeySet().getMnemonic()); |
|
this.setSmallIcon(BaseUtils.readIcon("/com/fr/base/images/share/template_store.png")); |
|
} |
|
|
|
public static final MenuKeySet TEMPLATE = new MenuKeySet() { |
|
|
|
@Override |
|
public String getMenuName() { |
|
|
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Share_Template_Store"); |
|
} |
|
|
|
@Override |
|
public KeyStroke getKeyStroke() { |
|
return null; |
|
} |
|
|
|
@Override |
|
public char getMnemonic() { |
|
|
|
return 'T'; |
|
} |
|
}; |
|
|
|
@Override |
|
public String getJumpUrl() { |
|
ComponentCollector.getInstance().collectTepMenuEnterClick(); |
|
return LocaleLinkProvider.getInstance().getLink(PROPS_LINK_KEY ,PROPS_LINK_KEY_DEFAULT); |
|
} |
|
}
|
|
|