Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-1453 corrected XML export of custom properties such as Analysis Times

ghidra10ac639f50430
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/PropertiesXmlMgr.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/PropertiesXmlMgr.java
index 9d2cb81b83..72d9097c10 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/PropertiesXmlMgr.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/PropertiesXmlMgr.java
@@ -1,6 +1,5 @@
/* ###
* IP: GHIDRA
- * REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +15,15 @@
*/
package ghidra.app.util.xml;
+import java.awt.Color;
+import java.awt.Font;
+import java.io.File;
+import java.util.*;
+
+import javax.swing.KeyStroke;
+
+import org.xml.sax.SAXParseException;
+
import ghidra.app.util.importer.MessageLog;
import ghidra.framework.options.*;
import ghidra.program.model.address.*;
@@ -28,15 +36,6 @@ import ghidra.util.xml.*;
import ghidra.xml.XmlElement;
import ghidra.xml.XmlPullParser;
-import java.awt.Color;
-import java.awt.Font;
-import java.io.File;
-import java.util.*;
-
-import javax.swing.KeyStroke;
-
-import org.xml.sax.SAXParseException;
-
class PropertiesXmlMgr {
private final static String PROPERTY_LIST_CATEGORY_DELIMITER = Options.DELIMITER_STRING;
@@ -406,7 +405,7 @@ class PropertiesXmlMgr {
case CUSTOM_TYPE:
attrs.addAttribute("TYPE", "custom");
CustomOption custom = propList.getCustomOption(name, null);
- xmlString = OptionType.KEYSTROKE_TYPE.convertObjectToString(custom);
+ xmlString = OptionType.CUSTOM_TYPE.convertObjectToString(custom);
attrs.addAttribute("VALUE", XmlUtilities.escapeElementEntities(xmlString));
break;
case BYTE_ARRAY_TYPE: