Package ghidra.features.base.quickfix
Class QuckFixTableProvider
java.lang.Object
docking.ComponentProvider
ghidra.features.base.quickfix.QuckFixTableProvider
- All Implemented Interfaces:
ActionContextProvider
,HelpDescriptor
- Direct Known Subclasses:
SearchAndReplaceProvider
Component Provider for displaying lists of
QuickFix
s and the actions to execute them
in bulk or individually.-
Field Summary
Fields inherited from class docking.ComponentProvider
DEFAULT_WINDOW_GROUP, dockingTool
-
Constructor Summary
ConstructorsConstructorDescriptionQuckFixTableProvider
(PluginTool tool, String title, String owner, Program program, TableDataLoader<QuickFix> loader) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies all the selected items.protected JPanel
void
This is the callback that will happen when the user presses the 'X' button of a provider.protected void
createActions
(String owner) void
getActionContext
(MouseEvent event) Returns the context object which corresponds to the area of focus within this provider's component.Returns the component to be displayedint
Returns the selected row in the tableReturns the table model.protected String
boolean
isBusy
(TableModel model) void
programClosed
(Program program) void
setSelection
(int start, int end) Sets the selected rows in the tableprotected void
tableLoaded
(boolean wasCancelled, TableDataLoader<QuickFix> loader) Methods inherited from class docking.ComponentProvider
addLocalAction, addToTool, addToToolbar, adjustFontSize, canBeParent, componentActivated, componentDeactived, componentHidden, componentMadeDisplayable, componentShown, contextChanged, createContext, createContext, createContext, getBaseIcon, getContextType, getDefaultWindowPosition, getHelpInfo, getHelpLocation, getHelpObject, getIcon, getInstanceID, getIntraGroupPosition, getLocalActions, getMappedName, getMappedOwner, getName, getOwner, getSubTitle, getTabText, getTitle, getTool, getWindowGroup, getWindowSubMenuName, initializeInstanceID, isActive, isFocusedProvider, isInTool, isShowing, isSnapshot, isTransient, isVisible, registerAdjustableFontId, registerProviderNameOwnerChange, removeAllLocalActions, removeFromTool, removeLocalAction, requestFocus, resetFontSize, setCustomSubTitle, setCustomTabText, setCustomTitle, setDefaultFocusComponent, setDefaultWindowPosition, setHelpLocation, setIcon, setIntraGroupPosition, setKeyBinding, setSubTitle, setTabText, setTitle, setTransient, setVisible, setWindowGroup, setWindowMenuGroup, toFront, toString
-
Constructor Details
-
QuckFixTableProvider
public QuckFixTableProvider(PluginTool tool, String title, String owner, Program program, TableDataLoader<QuickFix> loader)
-
-
Method Details
-
tableLoaded
-
createActions
-
getActionContext
Description copied from class:ComponentProvider
Returns the context object which corresponds to the area of focus within this provider's component. Null is returned when there is no context.- Specified by:
getActionContext
in interfaceActionContextProvider
- Overrides:
getActionContext
in classComponentProvider
- Parameters:
event
- popup event which corresponds to this request. May be null for key-stroke or other non-mouse event.
-
closeComponent
public void closeComponent()Description copied from class:ComponentProvider
This is the callback that will happen when the user presses the 'X' button of a provider. Transient providers will be removed from the tool completely. Non-transient providers will merely be hidden.Subclasses may override this method to prevent a provider from being closed; for example, if an editor has unsaved changes, then this method could prevent the close from happening.
- Overrides:
closeComponent
in classComponentProvider
-
getComponent
Description copied from class:ComponentProvider
Returns the component to be displayed- Specified by:
getComponent
in classComponentProvider
- Returns:
- the component to be displayed
-
buildMainPanel
-
isBusy
-
executeAll
public void executeAll() -
getTaskTitle
-
programClosed
-
getTableModel
Returns the table model.- Returns:
- the table model
-
setSelection
public void setSelection(int start, int end) Sets the selected rows in the table- Parameters:
start
- the index of the first row to selectend
- the index of the last row to select
-
getSelectedRow
public int getSelectedRow()Returns the selected row in the table- Returns:
- the selected row in the table
-
applySelected
public void applySelected()Applies all the selected items.
-