Package ghidra.framework.plugintool.mgr

# Class DialogManager

java.lang.Object
ghidra.framework.plugintool.mgr.DialogManager

public class DialogManager extends Object
Helper class to manage actions for saving and exporting the tool

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DialogManager(PluginTool tool)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `exportDefaultTool()`
  Exports a version of our tool without any config settings.
  `void`
  `exportTool()`
  Write our tool to a filename; the user is prompted for a filename
  `boolean`
  `saveToolAs()`
  Show the "Save Tool" dialog.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DialogManager

    public DialogManager(PluginTool tool)

- ## Method Details

  - ### saveToolAs

    public boolean saveToolAs()
    Show the "Save Tool" dialog. Returns true if the user performed a 'save as'; returns false if the user cancelled.
    Returns:
      false if the user cancelled

  - ### exportTool

    public void exportTool()
    Write our tool to a filename; the user is prompted for a filename

  - ### exportDefaultTool

    public void exportDefaultTool()
    Exports a version of our tool without any config settings. This is useful for making a new 'default' tool to be shared with others, which will not contain any user settings.