Class ProgramFileChooser

All Implemented Interfaces:
ActionContextProvider, GTreeSelectionListener, StatusListener, TaskListener, ActionListener, EventListener

public class ProgramFileChooser extends DataTreeDialog
ProgramFileChooser facilitates selection of an existing project Program file including Program link-files which may link to either internal or external program files. This chooser operates in the open mode for selecting an existing file only.

This chooser should not be used to facilitate an immediate or future save-as operation or to open a Program for update since it can return a read-only file. A more taylored DataTreeDialog should be used for case where the file will be written.

  • Field Details

    • PROGRAM_FILE_FILTER

      public static final DomainFileFilter PROGRAM_FILE_FILTER
      This file filter permits selection of any program including those than can be found by following bother internal and external folder and files links.
  • Constructor Details

    • ProgramFileChooser

      public ProgramFileChooser(Component parent, String title)
      Construct a new ProgramChooser for the active project.
      Parameters:
      parent - dialog's parent
      title - title to use
      Throws:
      IllegalArgumentException - if invalid type is specified
    • ProgramFileChooser

      public ProgramFileChooser(Component parent, String title, Project project)
      Construct a new DataTreeDialog for the given project.
      Parameters:
      parent - dialog's parent
      title - title to use
      project - the project to browse
      Throws:
      IllegalArgumentException - if invalid type is specified