mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-25 17:00:36 -09:00
Merge remote-tracking branch 'origin/GP-1453_ghidra1_XmlExportCustomProperties' into patch
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user