Class ProjectFolderValue

java.lang.Object
docking.widgets.values.AbstractValue<DomainFolder>
ghidra.features.base.values.ProjectFolderValue

public class ProjectFolderValue extends AbstractValue<DomainFolder>
Value class for project folders (DomainFile). The editor component consists of the JTextField and a browse button for bringing up a DataTreeDialog for picking project folders from the current project.

This class and other subclasses of AbstractValue are part of a subsystem for easily defining a set of values that can be displayed in an input dialog (ValuesMapDialog). Typically, these values are created indirectly using a GValuesMap which is then given to the constructor of the dialog. However, an alternate approach is to create the dialog without a ValuesMap and then use its ValuesMapDialog.addValue(AbstractValue) method directly.

  • Constructor Details

    • ProjectFolderValue

      public ProjectFolderValue(String name)
      Constructor for ProjectFolderValues with the given name.
      Parameters:
      name - the name of the value
    • ProjectFolderValue

      public ProjectFolderValue(String name, String defaultValuePath)
      Constructor for creating a new ProjectFolderValue with the given name and a path for a default folder value.
      Parameters:
      name - the name of the value
      defaultValuePath - the path for a default folder value
    • ProjectFolderValue

      public ProjectFolderValue(String name, Project project, String defaultValuePath)
      Constructor for creating ProjectFolderValues for projects other than the active project.
      Parameters:
      name - the name of the value
      project - the project to find a folder from
      defaultValuePath - the path of a default folder value
  • Method Details