|
|
|
@ -13,15 +13,16 @@ import java.util.Set;
|
|
|
|
|
* Created by alex sung on 2019/7/23. |
|
|
|
|
*/ |
|
|
|
|
public class FileNodeConstants { |
|
|
|
|
public static String[] SUPPORT_FILE_TYPES; |
|
|
|
|
|
|
|
|
|
static { |
|
|
|
|
private FileNodeConstants(){} |
|
|
|
|
|
|
|
|
|
public static String[] getSupportFileTypes(){ |
|
|
|
|
List<String> supportFileType = new ArrayList<>(Arrays.asList(FRContext.getFileNodes().getSupportedTypes())); |
|
|
|
|
//通过插件扩展的
|
|
|
|
|
Set<App> apps = ExtraDesignClassManager.getInstance().getArray(App.MARK_STRING); |
|
|
|
|
for(App app: apps){ |
|
|
|
|
supportFileType.addAll(Arrays.asList(app.defaultExtensions())); |
|
|
|
|
} |
|
|
|
|
SUPPORT_FILE_TYPES = supportFileType.toArray(new String[0]); |
|
|
|
|
return supportFileType.toArray(new String[0]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|