Package ghidra.program.model.data
Interface DataTypeManagerChangeListener
-
- All Known Implementing Classes:
DataTypeManagerChangeListenerAdapter,DataTypeManagerChangeListenerHandler
public interface DataTypeManagerChangeListenerThe listener interface for notification of changes to a DataTypeManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcategoryAdded(DataTypeManager dtm, CategoryPath path)Notification when category is added.voidcategoryMoved(DataTypeManager dtm, CategoryPath oldPath, CategoryPath newPath)Notification when a category is reparented to new category.voidcategoryRemoved(DataTypeManager dtm, CategoryPath path)Notification when a category is removed.voidcategoryRenamed(DataTypeManager dtm, CategoryPath oldPath, CategoryPath newPath)Notification when category is renamed.voiddataTypeAdded(DataTypeManager dtm, DataTypePath path)Notification when a data type is added to a categoryvoiddataTypeChanged(DataTypeManager dtm, DataTypePath path)Notification when data type is changed.voiddataTypeMoved(DataTypeManager dtm, DataTypePath oldPath, DataTypePath newPath)Notification when a data type is moved.voiddataTypeRemoved(DataTypeManager dtm, DataTypePath path)Notification when data type is removed.voiddataTypeRenamed(DataTypeManager dtm, DataTypePath oldPath, DataTypePath newPath)Notification when data type is renamed.voiddataTypeReplaced(DataTypeManager dtm, DataTypePath oldPath, DataTypePath newPath, DataType newDataType)Notification when a data type has been replaced.voidfavoritesChanged(DataTypeManager dtm, DataTypePath path, boolean isFavorite)Notification the favorite status of a datatype has changedvoidsourceArchiveAdded(DataTypeManager dataTypeManager, SourceArchive sourceArchive)Notification that the information for a source archive has been added.voidsourceArchiveChanged(DataTypeManager dataTypeManager, SourceArchive sourceArchive)Notification that the information for a particular source archive has changed.
-
-
-
Method Detail
-
categoryAdded
void categoryAdded(DataTypeManager dtm, CategoryPath path)
Notification when category is added.- Parameters:
dtm- the dataType managerpath- the categoryPath of the newly added category.
-
categoryRemoved
void categoryRemoved(DataTypeManager dtm, CategoryPath path)
Notification when a category is removed.- Parameters:
dtm- data type manager associated with the categorypath- the categoryPath of the category that was removed.
-
categoryRenamed
void categoryRenamed(DataTypeManager dtm, CategoryPath oldPath, CategoryPath newPath)
Notification when category is renamed.- Parameters:
dtm- data type manager associated with the categoryoldPath- the path of the category before it was renamed.newPath- the path of the category after it was renamed. This path will only differ in the last segment of the path.
-
categoryMoved
void categoryMoved(DataTypeManager dtm, CategoryPath oldPath, CategoryPath newPath)
Notification when a category is reparented to new category.- Parameters:
dtm- data type manager associated with the categoryoldPath- the path of the category before it was moved.newPath- the path of the category after it was moved.
-
dataTypeAdded
void dataTypeAdded(DataTypeManager dtm, DataTypePath path)
Notification when a data type is added to a category- Parameters:
dtm- data type manager for the given category paths.path- the DataTypePath of the newly added datatype.
-
dataTypeRemoved
void dataTypeRemoved(DataTypeManager dtm, DataTypePath path)
Notification when data type is removed.- Parameters:
dtm- data type manager for the given category paths.path- the DataTypePath of the removed datatype.
-
dataTypeRenamed
void dataTypeRenamed(DataTypeManager dtm, DataTypePath oldPath, DataTypePath newPath)
Notification when data type is renamed.- Parameters:
dtm- data type manager for the given category paths.oldPath- the path of the datatype before it was renamed.newPath- the path of the datatype after it was renamed.
-
dataTypeMoved
void dataTypeMoved(DataTypeManager dtm, DataTypePath oldPath, DataTypePath newPath)
Notification when a data type is moved.- Parameters:
dtm- data type manager for the given category paths.oldPath- the path of the datatype before it was moved.newPath- the path of the datatype after it was moved.
-
dataTypeChanged
void dataTypeChanged(DataTypeManager dtm, DataTypePath path)
Notification when data type is changed.- Parameters:
dtm- data type manager for the given category paths.path- the path of the datatype that changed.
-
dataTypeReplaced
void dataTypeReplaced(DataTypeManager dtm, DataTypePath oldPath, DataTypePath newPath, DataType newDataType)
Notification when a data type has been replaced.- Parameters:
dtm- data type manager for the given category paths.oldPath- the path of the datatype that was replaced.newPath- the path of the datatype that replaced the existing datatype.newDataType- the new dataType that replaced the old dataType
-
favoritesChanged
void favoritesChanged(DataTypeManager dtm, DataTypePath path, boolean isFavorite)
Notification the favorite status of a datatype has changed- Parameters:
dtm- data type manager for the given category paths.path- the DataTypePath of the datatype had its favorite status changed.isFavorite- reflects the current favorite status of the datatype.
-
sourceArchiveChanged
void sourceArchiveChanged(DataTypeManager dataTypeManager, SourceArchive sourceArchive)
Notification that the information for a particular source archive has changed. Typically, this would be because it was renamed or moved.- Parameters:
dataTypeManager- data type manager referring to the given source information.sourceArchiveID- the id for the
-
sourceArchiveAdded
void sourceArchiveAdded(DataTypeManager dataTypeManager, SourceArchive sourceArchive)
Notification that the information for a source archive has been added. This happens when a data type from the indicated source archive is added to this data type manager.- Parameters:
dataTypeManager- data type manager referring to the given source information.sourceArchive- the new data type source information
-
-