Interface ProgramBasedDataTypeManager
- All Superinterfaces:
DataTypeManager, DomainFileBasedDataTypeManager, FileBasedDataTypeManager
- All Known Subinterfaces:
TraceBasedDataTypeManager
- All Known Implementing Classes:
DBTraceDataTypeManager, ProgramBasedDataTypeManagerDB, ProgramDataTypeManager
Extends DataTypeManager to include methods specific to a data type manager for
a program.
-
Field Summary
Fields inherited from interface DataTypeManager
BAD_DATATYPE_ID, BUILT_IN_ARCHIVE_KEY, BUILT_IN_ARCHIVE_UNIVERSAL_ID, BUILT_IN_DATA_TYPES_NAME, DEFAULT_DATATYPE_ID, LOCAL_ARCHIVE_KEY, LOCAL_ARCHIVE_UNIVERSAL_ID, NULL_DATATYPE_ID -
Method Summary
Modifier and TypeMethodDescriptionvoidclearAllSettings(Data data) Clear all settings for the given data.booleanclearSetting(Data data, String name) Clear the specified setting for the given datavoiddeleteAddressRange(Address startAddr, Address endAddr, TaskMonitor monitor) Removes all settings in the rangeString[]getInstanceSettingsNames(Data data) Returns all the instance Settings names used for the specified datagetLongSettingsValue(Data data, String name) Get the long value for data instance settings.Get the program instance associated with this datatype managergetSettings(Data data, String name) Gets the value for data instance settings in Object form.getStringSettingsValue(Data data, String name) Get the String value for data instance settings.booleanisChangeAllowed(Data data, SettingsDefinition settingsDefinition) Determine if a settings change is permitted for the specified settingsDefinition.booleanisEmptySetting(Data data) Returns true if no settings are set for the given datavoidmoveAddressRange(Address fromAddr, Address toAddr, long length, TaskMonitor monitor) Move the settings in the range to the new start addressbooleansetLongSettingsValue(Data data, String name, long value) Set the long value for data instance settings.booleansetSettings(Data data, String name, Object value) Set the Object value for data instance settings.booleansetStringSettingsValue(Data data, String name, String value) Set the string value for data instance settings.Methods inherited from interface DataTypeManager
addDataType, addDataTypeManagerListener, addDataTypes, addInvalidatedListener, allowsDefaultBuiltInSettings, allowsDefaultComponentSettings, associateDataTypeWithArchive, close, contains, containsCategory, createCategory, disassociate, endTransaction, findDataType, findDataTypeForID, findDataTypes, findDataTypes, findEnumValueNames, flushEvents, getAddressMap, getAllComposites, getAllDataTypes, getAllDataTypes, getAllFunctionDefinitions, getAllStructures, getCallingConvention, getCategory, getCategory, getCategoryCount, getDataOrganization, getDataType, getDataType, getDataType, getDataType, getDataType, getDataTypeCount, getDataTypes, getDataTypesContaining, getDefaultCallingConvention, getDefinedCallingConventionNames, getFavorites, getID, getKnownCallingConventionNames, getLastChangeTimeForMyManager, getLocalSourceArchive, getName, getPointer, getPointer, getProgramArchitecture, getProgramArchitectureSummary, getResolvedID, getRootCategory, getSourceArchive, getSourceArchives, getType, getUniqueName, getUniversalID, isFavorite, isUpdatable, openTransaction, remove, remove, remove, removeDataTypeManagerListener, removeInvalidatedListener, removeSourceArchive, replaceDataType, resolve, resolveSourceArchive, setFavorite, setName, startTransaction, updateSourceArchiveName, updateSourceArchiveName, withTransaction, withTransactionMethods inherited from interface DomainFileBasedDataTypeManager
getDomainFileMethods inherited from interface FileBasedDataTypeManager
getPath
-
Method Details
-
getProgram
Program getProgram()Get the program instance associated with this datatype manager- Returns:
- program instance associated with this datatype manager
-
isChangeAllowed
Determine if a settings change is permitted for the specified settingsDefinition.- Parameters:
data- data code unitsettingsDefinition- settings definition- Returns:
- true if change permitted else false
-
setLongSettingsValue
-
setStringSettingsValue
-
setSettings
-
getLongSettingsValue
-
getStringSettingsValue
-
getSettings
-
clearSetting
-
clearAllSettings
Clear all settings for the given data.- Parameters:
data- data code unit
-
getInstanceSettingsNames
-
isEmptySetting
Returns true if no settings are set for the given data- Parameters:
data- data code unit- Returns:
- true if not settings
-
moveAddressRange
void moveAddressRange(Address fromAddr, Address toAddr, long length, TaskMonitor monitor) throws CancelledException Move the settings in the range to the new start address- Parameters:
fromAddr- start address from where to movetoAddr- new Address to move tolength- number of addresses to movemonitor- progress monitor- Throws:
CancelledException- if the operation was cancelled
-
deleteAddressRange
void deleteAddressRange(Address startAddr, Address endAddr, TaskMonitor monitor) throws CancelledException Removes all settings in the range- Parameters:
startAddr- the first address in the range.endAddr- the last address in the range.monitor- the progress monitor- Throws:
CancelledException- if the user cancelled the operation.
-