Package ghidra.program.util
Interface DataTypeArchiveChangeManager
- All Known Implementing Classes:
DataTypeArchiveDB
public interface DataTypeArchiveChangeManager
Interface to define event types and the method to generate an
event within Program.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Category was added.static final int
Category was moved.static final int
Category was removed.static final int
Category was renamed.static final int
A custom format for a data type was added.static final int
A custom format for a data type was removed.static final int
Data type was added to a category.static final int
Data type was updated.static final int
Data type was moved to another category.static final int
Data type was removed from a category.static final int
Data Type was renamed.static final int
Data type was replaced in a category.static final int
The settings on a data type were updated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setChanged
(int type, Object oldValue, Object newValue) Mark the state of a Data Type Archive as having changed and generate the event of the specified type.void
setObjChanged
(int type, Object affectedObj, Object oldValue, Object newValue) Mark the state of a Data Type Archive as having changed and generate the event of the specified type.
-
Field Details
-
DOCR_CATEGORY_ADDED
static final int DOCR_CATEGORY_ADDEDCategory was added.- See Also:
-
DOCR_CATEGORY_REMOVED
static final int DOCR_CATEGORY_REMOVEDCategory was removed.- See Also:
-
DOCR_CATEGORY_RENAMED
static final int DOCR_CATEGORY_RENAMEDCategory was renamed.- See Also:
-
DOCR_CATEGORY_MOVED
static final int DOCR_CATEGORY_MOVEDCategory was moved.- See Also:
-
DOCR_DATA_TYPE_ADDED
static final int DOCR_DATA_TYPE_ADDEDData type was added to a category.- See Also:
-
DOCR_DATA_TYPE_REMOVED
static final int DOCR_DATA_TYPE_REMOVEDData type was removed from a category.- See Also:
-
DOCR_DATA_TYPE_RENAMED
static final int DOCR_DATA_TYPE_RENAMEDData Type was renamed.- See Also:
-
DOCR_DATA_TYPE_MOVED
static final int DOCR_DATA_TYPE_MOVEDData type was moved to another category.- See Also:
-
DOCR_DATA_TYPE_CHANGED
static final int DOCR_DATA_TYPE_CHANGEDData type was updated.- See Also:
-
DOCR_DATA_TYPE_SETTING_CHANGED
static final int DOCR_DATA_TYPE_SETTING_CHANGEDThe settings on a data type were updated.- See Also:
-
DOCR_DATA_TYPE_REPLACED
static final int DOCR_DATA_TYPE_REPLACEDData type was replaced in a category.- See Also:
-
DOCR_CUSTOM_FORMAT_ADDED
static final int DOCR_CUSTOM_FORMAT_ADDEDA custom format for a data type was added.- See Also:
-
DOCR_CUSTOM_FORMAT_REMOVED
static final int DOCR_CUSTOM_FORMAT_REMOVEDA custom format for a data type was removed.- See Also:
-
-
Method Details
-
setChanged
Mark the state of a Data Type Archive as having changed and generate the event of the specified type. Any or all parameters may be null.- Parameters:
type
- event typeoldValue
- original value or an Object that is related to the eventnewValue
- new value or an Object that is related to the the event
-
setObjChanged
Mark the state of a Data Type Archive as having changed and generate the event of the specified type. Any or all parameters may be null.- Parameters:
type
- event typeaffectedObj
- object that is the subject of the eventoldValue
- original value or an Object that is related to the eventnewValue
- new value or an Object that is related to the the event
-