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.
54 lines
1.5 KiB
54 lines
1.5 KiB
package com.fr.design.actions.community; |
|
|
|
import com.fr.design.i18n.LocaleLinkProvider; |
|
import com.fr.design.login.AbstractDesignerSSO; |
|
import com.fr.design.menu.MenuKeySet; |
|
|
|
import javax.swing.KeyStroke; |
|
|
|
/** |
|
* Created by XINZAI on 2018/8/23. |
|
*/ |
|
public class TechSolutionAction extends AbstractDesignerSSO { |
|
|
|
/** |
|
* 云中心社区在配置文件中对应的配置文件key |
|
*/ |
|
private static final String PROPS_LINK_KEY = "Fine-Design-CloudCenter_Community"; |
|
|
|
/** |
|
* 云中心社区默认链接在配置文件中对应的配置文件key |
|
*/ |
|
private static final String PROPS_LINK_KEY_DEFAULT = "Fine-Design-CloudCenter_Community_Default"; |
|
|
|
public TechSolutionAction() { |
|
this.setMenuKeySet(TSO); |
|
this.setName(getMenuKeySet().getMenuName()); |
|
this.setMnemonic(getMenuKeySet().getMnemonic()); |
|
this.setSmallIcon("/com/fr/design/images/bbs/solution"); |
|
|
|
} |
|
|
|
@Override |
|
public String getJumpUrl() { |
|
return LocaleLinkProvider.getInstance().getLink(PROPS_LINK_KEY ,PROPS_LINK_KEY_DEFAULT); |
|
} |
|
|
|
public static final MenuKeySet TSO = new MenuKeySet() { |
|
@Override |
|
public char getMnemonic() { |
|
return 'T'; |
|
} |
|
|
|
@Override |
|
public String getMenuName() { |
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Commuinity_Solution"); |
|
} |
|
|
|
@Override |
|
public KeyStroke getKeyStroke() { |
|
return null; |
|
} |
|
}; |
|
|
|
}
|
|
|