Package ghidra.framework.data
Class FolderLinkContentHandler
java.lang.Object
ghidra.framework.data.LinkHandler<NullFolderDomainObject>
ghidra.framework.data.FolderLinkContentHandler
- All Implemented Interfaces:
ContentHandler<NullFolderDomainObject>,ExtensionPoint
FolderLinkContentHandler provide folder-link support.
Implementation relies on AppInfo.getActiveProject() to provide life-cycle
management for related transient-projects opened while following folder-links.-
Nested Class Summary
Nested classes/interfaces inherited from class ghidra.framework.data.LinkHandler
LinkHandler.LinkStatus -
Field Summary
FieldsFields inherited from class ghidra.framework.data.LinkHandler
LINK_ICON, URL_METADATA_KEYFields inherited from interface ghidra.framework.data.ContentHandler
MISSING_CONTENT, UNKNOWN_CONTENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a unique content-type identifierA string that is meant to be presented to the user.Returns the name of the default tool/template that should be used to open this content type.Returns domain object implementation class supported.getIcon()Get the base icon for this link-file which does not include the link overlay icon.static LinkedGhidraFoldergetLinkedFolder(DomainFile folderLinkFile) Get linked domain folder.Methods inherited from class ghidra.framework.data.LinkHandler
createFile, createLink, followInternalLinkage, getAbsoluteLinkPath, getChangeSet, getDomainObject, getImmutableObject, getLinkFileStatus, getLinkHandler, getLinkURL, getMergeManager, getReadOnlyObject, isPrivateContentTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ghidra.framework.data.ContentHandler
canResetDBSourceFile, resetDBSourceFile
-
Field Details
-
INSTANCE
-
FOLDER_LINK_CONTENT_TYPE
- See Also:
-
-
Constructor Details
-
FolderLinkContentHandler
public FolderLinkContentHandler()
-
-
Method Details
-
getContentType
Description copied from interface:ContentHandlerReturns a unique content-type identifier- Returns:
- content type identifier for associated domain object(s).
-
getContentTypeDisplayString
Description copied from interface:ContentHandlerA string that is meant to be presented to the user.- Returns:
- user friendly content type for associated domain object(s).
-
getDomainObjectClass
Description copied from interface:ContentHandlerReturns domain object implementation class supported.- Returns:
- implementation class for the associated
DomainObjectAdapterimplementation.
-
getIcon
Description copied from class:LinkHandlerGet the base icon for this link-file which does not include the link overlay icon.- Specified by:
getIconin interfaceContentHandler<NullFolderDomainObject>- Specified by:
getIconin classLinkHandler<NullFolderDomainObject>- Returns:
- base icon to be used for a
DomainFilewith the associated content type.
-
getDefaultToolName
Description copied from interface:ContentHandlerReturns the name of the default tool/template that should be used to open this content type.- Returns:
- associated default tool name for this content type
-
getLinkedFolder
Get linked domain folder.IMPORTANT: The use of external GhidraURL-based links is only supported in the context of a an active project which is used to manage the associated project view.
If the link refers to a folder within the active project (i.e., path based), the resulting linked folder will be treated as part of that project, otherwise content will be treated as read-only.
- Parameters:
folderLinkFile- folder-link file.- Returns:
LinkedGhidraFolderreferenced by specified folder-link file or null if folderLinkFile content type is not "FolderLink".- Throws:
IOException- if an IO or folder item access error occurs or a linkage error exists.
-