Class OpenWithTarget

java.lang.Object
ghidra.plugins.fsbrowser.OpenWithTarget

public class OpenWithTarget extends Object
Represents a way to open a DomainFile in a ProgramManager
  • Constructor Details

  • Method Details

    • getAll

      public static List<OpenWithTarget> getAll()
      Returns a list of all running tools and tool templates that can be used to open a domainfile.
      Returns:
      list of OpenWithTarget instances, maybe empty but not null
    • getDefault

      public static OpenWithTarget getDefault(PluginTool tool)
      Returns an OpenWithTarget, or null, that represents the specified tool's default ability to open a DomainFile.
      Parameters:
      tool - a PluginTool
      Returns:
      a OpenWithTarget, or null if the specified tool can't open a domain file
    • getRunningProgramManager

      public static OpenWithTarget getRunningProgramManager(PluginTool tool)
      Returns an OpenWithTarget, or null, that represents a running ProgramManager.
      Parameters:
      tool - a PluginTool
      Returns:
      a OpenWithTarget, or null if there is no open ProgramManager
    • getName

      public String getName()
    • getPm

      public ProgramManager getPm()
    • getIcon

      public Icon getIcon()
    • open

      public void open(List<DomainFile> files)
      Opens the specified files, using whatever program manager / tool this instance represents.

      The first item in the list of files will be focused / made visible, the other items in the list will be opened but not focused.

      Parameters:
      files - DomainFiles to open