File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 2424 * @author airsaid
2525 */
2626public interface PluginIcons {
27- Icon TRANSLATE_ACTION_ICON = IconLoader .getIcon ("/icons/icon_translate.svg" );
28- Icon GOOGLE_ICON = IconLoader .getIcon ("/icons/icon_google.svg" );
29- Icon BAIDU_ICON = IconLoader .getIcon ("/icons/icon_baidu.svg" );
30- Icon YOUDAO_ICON = IconLoader .getIcon ("/icons/icon_youdao.svg" );
31- Icon MICROSOFT_ICON = IconLoader .getIcon ("/icons/icon_microsoft.svg" );
27+ Icon TRANSLATE_ACTION_ICON = load ("/icons/icon_translate.svg" );
28+ Icon GOOGLE_ICON = load ("/icons/icon_google.svg" );
29+ Icon BAIDU_ICON = load ("/icons/icon_baidu.svg" );
30+ Icon YOUDAO_ICON = load ("/icons/icon_youdao.svg" );
31+ Icon MICROSOFT_ICON = load ("/icons/icon_microsoft.svg" );
32+
33+ private static Icon load (String path ) {
34+ return IconLoader .getIcon (path , PluginIcons .class );
35+ }
3236}
You can’t perform that action at this time.
0 commit comments