Package docking

Class ReusableDialogComponentProvider

java.lang.Object
docking.DialogComponentProvider
docking.ReusableDialogComponentProvider
All Implemented Interfaces:
ActionContextProvider, StatusListener, TaskListener
Direct Known Subclasses:
AbstractErrDialog, AddEditDialog, ColumnFilterDialog, FindDialog, GhidraFileChooser, GoToAddressLabelDialog, ManagePluginsDialog, OptionsDialog, WizardManager

public class ReusableDialogComponentProvider extends DialogComponentProvider
A version of DialogComponentProvider for clients to extend when they intend for their dialog to be reused. Typically, dialogs are used once and then no longer referenced. Alternatively, some clients create a dialog and use it for the lifetime of their code. This is typical of non-modal plugins.

If you extend this class, then you must call the dispose() method when you are done with the dialog, such as in your plugin's dispose() method.

The primary benefit of using this dialog is that any updates to the current theme will update this dialog, even when the dialog is not visible. For dialogs that extend DialogComponentProvider directly, they only receive theme updates if they are visible.

See Also:
  • Constructor Details

    • ReusableDialogComponentProvider

      protected ReusableDialogComponentProvider(String title)
    • ReusableDialogComponentProvider

      protected ReusableDialogComponentProvider(String title, boolean modal, boolean includeStatus, boolean includeButtons, boolean canRunTasks)
      Constructs a new ReusableDialogComponentProvider.
      Parameters:
      title - the title for this dialog.
      modal - true if this dialog should be modal.
      includeStatus - true if this dialog should include a status line.
      includeButtons - true if this dialog will have a button panel at the bottom.
      canRunTasks - true means this dialog can execute tasks (DialogComponentProvider.executeProgressTask(Task, int) and it will show a progress monitor when doing so.
  • Method Details