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
QuickFixs 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 TypeMethodDescriptionvoidApplies all the selected items.protected JPanelvoidThis is the callback that will happen when the user presses the 'X' button of a provider.protected voidcreateActions(String owner) voidgetActionContext(MouseEvent event) Returns the context object which corresponds to the area of focus within this provider's component.Returns the component to be displayedintReturns the selected row in the tableReturns the table model.protected StringbooleanisBusy(TableModel model) voidprogramClosed(Program program) voidsetSelection(int start, int end) Sets the selected rows in the tableprotected voidtableLoaded(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:ComponentProviderReturns 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:
getActionContextin interfaceActionContextProvider- Overrides:
getActionContextin 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:ComponentProviderThis 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:
closeComponentin classComponentProvider
-
getComponent
Description copied from class:ComponentProviderReturns the component to be displayed- Specified by:
getComponentin 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.
-