Package ghidra.app.nav
Class NextRangeAction
- java.lang.Object
-
- docking.action.DockingAction
-
- ghidra.app.context.NavigatableContextAction
-
- ghidra.app.nav.NextRangeAction
-
- All Implemented Interfaces:
DockingActionIf
,HelpDescriptor
public abstract class NextRangeAction extends NavigatableContextAction
-
-
Field Summary
-
Fields inherited from interface docking.action.DockingActionIf
DESCRIPTION_PROPERTY, ENABLEMENT_PROPERTY, GLOBALCONTEXT_PROPERTY, KEYBINDING_DATA_PROPERTY, MENUBAR_DATA_PROPERTY, POPUP_MENU_DATA_PROPERTY, TOOLBAR_DATA_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description NextRangeAction(PluginTool tool, java.lang.String name, java.lang.String owner, ghidra.app.plugin.core.navigation.NavigationOptions navOptions)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(NavigatableActionContext context)
protected abstract ProgramSelection
getSelection(ProgramLocationActionContext context)
boolean
isEnabledForContext(NavigatableActionContext context)
protected boolean
isValidContext(NavigatableActionContext context)
boolean
shouldAddToWindow(boolean isMainWindow, java.util.Set<java.lang.Class<?>> contextTypes)
Default behavior is to add to main window;-
Methods inherited from class ghidra.app.context.NavigatableContextAction
actionPerformed, isAddToPopup, isAddToPopup, isEnabledForContext, isValidContext
-
Methods inherited from class docking.action.DockingAction
addPropertyChangeListener, createButton, createMenuItem, dispose, doCreateButton, doCreateMenuItem, firePropertyChanged, getDefaultKeyBindingData, getDescription, getFullName, getHelpInfo, getHelpObject, getInceptionFromTheFirstClassThatIsNotUs, getInceptionInformation, getKeyBinding, getKeyBindingData, getKeyBindingType, getMenuBarData, getName, getOwner, getPopupMenuData, getPreferredKeyBindingType, getToolBarData, isEnabled, isValidGlobalContext, markHelpUnnecessary, removePropertyChangeListener, setDescription, setEnabled, setHelpLocation, setKeyBindingData, setMenuBarData, setPopupMenuData, setToolBarData, setUnvalidatedKeyBindingData, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface docking.action.DockingActionIf
getOwnerDescription
-
-
-
-
Constructor Detail
-
NextRangeAction
public NextRangeAction(PluginTool tool, java.lang.String name, java.lang.String owner, ghidra.app.plugin.core.navigation.NavigationOptions navOptions)
-
-
Method Detail
-
isValidContext
protected boolean isValidContext(NavigatableActionContext context)
- Overrides:
isValidContext
in classNavigatableContextAction
-
isEnabledForContext
public boolean isEnabledForContext(NavigatableActionContext context)
- Overrides:
isEnabledForContext
in classNavigatableContextAction
-
actionPerformed
public void actionPerformed(NavigatableActionContext context)
- Overrides:
actionPerformed
in classNavigatableContextAction
-
getSelection
protected abstract ProgramSelection getSelection(ProgramLocationActionContext context)
-
shouldAddToWindow
public boolean shouldAddToWindow(boolean isMainWindow, java.util.Set<java.lang.Class<?>> contextTypes)
Description copied from class:DockingAction
Default behavior is to add to main window;- Specified by:
shouldAddToWindow
in interfaceDockingActionIf
- Overrides:
shouldAddToWindow
in classNavigatableContextAction
- Parameters:
isMainWindow
- true if the window in question is the main window. Otherwise, the window is a secondary window.contextTypes
- a list of contextTypes (Classes) based on the providers that are currently in the window.- Returns:
- true if this action should be added to the window, false otherwise.
-
-