Package ghidra.framework.plugintool
Class NavigatableComponentProviderAdapter
- java.lang.Object
-
- docking.ComponentProvider
-
- ghidra.framework.plugintool.ComponentProviderAdapter
-
- ghidra.framework.plugintool.NavigatableComponentProviderAdapter
-
- All Implemented Interfaces:
ActionContextProvider,HelpDescriptor,Navigatable
public abstract class NavigatableComponentProviderAdapter extends ComponentProviderAdapter implements Navigatable
-
-
Field Summary
-
Fields inherited from class ghidra.framework.plugintool.ComponentProviderAdapter
tool
-
Fields inherited from class docking.ComponentProvider
DEFAULT_WINDOW_GROUP, dockingTool
-
Fields inherited from interface ghidra.app.nav.Navigatable
DEFAULT_NAVIGATABLE_ID
-
-
Constructor Summary
Constructors Constructor Description NavigatableComponentProviderAdapter(PluginTool tool, java.lang.String name, java.lang.String owner, java.lang.Class<?> contextType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNavigatableListener(NavigatableRemovalListener listener)Adds a listener to be notified if this Navigatable is terminatedvoiddispose()javax.swing.IcongetIcon()Returns the Icon associated with the component viewjavax.swing.IcongetNavigatableIcon()Returns an icon that represents this NavigatablebooleanisConnected()Returns true if this Navigatable is "connected".booleanisDisposed()Returns true if this navigatable is no longer valid, false if it is still goodvoidreadDataState(SaveState saveState)voidremoveNavigatableListener(NavigatableRemovalListener listener)Removes a listener to be notified if this Navigatable is terminated.protected voidsetConnected(boolean newValue)booleansupportsMarkers()Currently only the 'connected' windows support markersvoidwriteDataState(SaveState saveState)-
Methods inherited from class ghidra.framework.plugintool.ComponentProviderAdapter
getTool
-
Methods inherited from class docking.ComponentProvider
addLocalAction, addToTool, addToToolbar, closeComponent, componentActivated, componentDeactived, componentHidden, componentShown, contextChanged, createContext, createContext, createContext, getActionContext, getComponent, getContextType, getDefaultWindowPosition, getHelpInfo, getHelpLocation, getHelpObject, getInstanceID, getIntraGroupPosition, getMappedName, getMappedOwner, getName, getOwner, getSubTitle, getTabText, getTitle, getWindowGroup, getWindowSubMenuName, initializeInstanceID, isActive, isFocusedProvider, isInTool, isSnapshot, isTransient, isVisible, registerProviderNameOwnerChange, removeFromTool, removeLocalAction, requestFocus, setDefaultWindowPosition, setHelpLocation, setIcon, setIntraGroupPosition, setKeyBinding, setSubTitle, setTabText, setTitle, setTransient, setVisible, setWindowGroup, setWindowMenuGroup, toFront, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ghidra.app.nav.Navigatable
getHighlight, getInstanceID, getLocation, getMemento, getProgram, getSelection, goTo, isVisible, removeHighlightProvider, requestFocus, setHighlight, setHighlightProvider, setMemento, setSelection, supportsHighlight
-
-
-
-
Constructor Detail
-
NavigatableComponentProviderAdapter
public NavigatableComponentProviderAdapter(PluginTool tool, java.lang.String name, java.lang.String owner, java.lang.Class<?> contextType)
-
-
Method Detail
-
getIcon
public javax.swing.Icon getIcon()
Description copied from class:ComponentProviderReturns the Icon associated with the component view- Overrides:
getIconin classComponentProvider- Returns:
- the Icon associated with the component view
-
getNavigatableIcon
public javax.swing.Icon getNavigatableIcon()
Description copied from interface:NavigatableReturns an icon that represents this Navigatable- Specified by:
getNavigatableIconin interfaceNavigatable- Returns:
- the icon
-
isConnected
public boolean isConnected()
Description copied from interface:NavigatableReturns true if this Navigatable is "connected". Navigatables are connected if they produce and consume location and selection events.- Specified by:
isConnectedin interfaceNavigatable- Returns:
- true if this Navigatable is "connected"
-
supportsMarkers
public boolean supportsMarkers()
Description copied from interface:NavigatableCurrently only the 'connected' windows support markers- Specified by:
supportsMarkersin interfaceNavigatable- Returns:
- true if this navigatable supports markers
-
setConnected
protected void setConnected(boolean newValue)
-
isDisposed
public boolean isDisposed()
Description copied from interface:NavigatableReturns true if this navigatable is no longer valid, false if it is still good- Specified by:
isDisposedin interfaceNavigatable- Returns:
- true if this navigatable is no longer valid, false if it is still good
-
dispose
public void dispose()
-
addNavigatableListener
public void addNavigatableListener(NavigatableRemovalListener listener)
Description copied from interface:NavigatableAdds a listener to be notified if this Navigatable is terminated- Specified by:
addNavigatableListenerin interfaceNavigatable- Parameters:
listener- the listener to be notified when this Navigatable is closed
-
removeNavigatableListener
public void removeNavigatableListener(NavigatableRemovalListener listener)
Description copied from interface:NavigatableRemoves a listener to be notified if this Navigatable is terminated.- Specified by:
removeNavigatableListenerin interfaceNavigatable- Parameters:
listener- the listener that no longer should be notified when this Navigatable is closed.
-
readDataState
public void readDataState(SaveState saveState)
-
writeDataState
public void writeDataState(SaveState saveState)
-
-