mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 00:40:45 +00:00
Custom SWF Configuration refactoring.
Make configuration serialization compatible with 16.2.0
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
package com.jpexs.decompiler.flash.configuration;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class CustomConfigurationKeys {
|
||||
public static final String KEY_LAST_SELECTED_PATH_RESOURCES = "lastSelectedPath.resources";
|
||||
public static final String KEY_LAST_SELECTED_PATH_TAGLIST = "lastSelectedPath.taglist";
|
||||
public static final String KEY_CHARSET = "charset";
|
||||
}
|
||||
+3
-5
@@ -26,17 +26,15 @@ import java.util.Map;
|
||||
*/
|
||||
public class SwfSpecificCustomConfiguration implements Serializable {
|
||||
|
||||
private Map<String, String> customData = new HashMap<>();
|
||||
private static final long serialVersionUID = 0x2acb421da57f5eb4L;
|
||||
|
||||
public static final String KEY_LAST_SELECTED_PATH_RESOURCES = "lastSelectedPath.resources";
|
||||
public static final String KEY_LAST_SELECTED_PATH_TAGLIST = "lastSelectedPath.taglist";
|
||||
public static final String KEY_CHARSET = "charset";
|
||||
private Map<String, String> customData = new HashMap<>();
|
||||
|
||||
public String getCustomData(String key, String defaultValue) {
|
||||
if (customData.containsKey(key)) {
|
||||
return customData.get(key);
|
||||
}
|
||||
|
||||
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user