@Test public void testGetFileSuffixes() { Settings settings = new Settings(); Lua lua = new Lua(settings); assertThat(lua.getFileSuffixes()).isEqualTo(new String[] {"lua"}); settings.setProperty(LuaPlugin.FILE_SUFFIXES_KEY, ""); assertThat(lua.getFileSuffixes()).isEqualTo(new String[] {"lua"}); settings.setProperty(LuaPlugin.FILE_SUFFIXES_KEY, "lua"); assertThat(lua.getFileSuffixes()).isEqualTo(new String[] {"lua"}); }
@Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(settings.getStringArray(LuaPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = StringUtils.split(DEFAULT_FILE_SUFFIXES, ","); } return suffixes; }
Lua extends AbstractLanguage { @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(settings.getStringArray(LuaPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = StringUtils.split(DEFAULT_FILE_SUFFIXES, ","); } return suffixes; } }
Lua extends AbstractLanguage { @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(settings.getStringArray(LuaPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = StringUtils.split(DEFAULT_FILE_SUFFIXES, ","); } return suffixes; } Lua(Settings settings); }
Lua extends AbstractLanguage { @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(settings.getStringArray(LuaPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = StringUtils.split(DEFAULT_FILE_SUFFIXES, ","); } return suffixes; } Lua(Settings settings); @Override String[] getFileSuffixes(); }
Lua extends AbstractLanguage { @Override public String[] getFileSuffixes() { String[] suffixes = filterEmptyStrings(settings.getStringArray(LuaPlugin.FILE_SUFFIXES_KEY)); if (suffixes.length == 0) { suffixes = StringUtils.split(DEFAULT_FILE_SUFFIXES, ","); } return suffixes; } Lua(Settings settings); @Override String[] getFileSuffixes(); static final String NAME; static final String KEY; static final String DEFAULT_FILE_SUFFIXES; }