Class NewDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class NewDialog extends JDialog
A dialog for selecting the files to load.
Author:
Marc Vaudel, Harald Barsnes
See Also:
  • Field Details

    • SEARCHGUI_INPUT

      public static final String SEARCHGUI_INPUT
      A file where the input FASTA and mgf files are stored.
      See Also:
  • Constructor Details

    • NewDialog

      public NewDialog(PeptideShakerGUI peptideShakerGui, boolean modal)
      Creates a new open dialog.
      Parameters:
      peptideShakerGui - a reference to the main frame
      modal - boolean indicating whether the dialog is modal
    • NewDialog

      public NewDialog(WelcomeDialog welcomeDialog, PeptideShakerGUI peptideShakerGui, boolean modal)
      Creates a new open dialog.
      Parameters:
      welcomeDialog - the welcome dialog parent frame
      peptideShakerGui - a reference to the main frame
      modal - boolean indicating whether the dialog is modal
  • Method Details

    • importSearchParameters

      public void importSearchParameters(File file, ArrayList<File> dataFolders, com.compomics.util.gui.waiting.waitinghandlers.ProgressDialogX progressDialog) throws IOException, FileNotFoundException, ClassNotFoundException
      Imports the search parameters from a file.
      Parameters:
      file - the selected searchGUI file
      dataFolders - folders where to look for the FASTA file
      progressDialog - the progress dialog
      Throws:
      IOException - exception thrown whenever an error occurred while importing the search parameters
      FileNotFoundException - exception thrown whenever an error occurred while importing the search parameters
      ClassNotFoundException - exception thrown whenever an error occurred while importing the search parameters
    • checkFastaFile

      public void checkFastaFile()
      Checks whether the FASTA file loaded contains mainly UniProt concatenated target decoy.
    • setIconImage

      public void setIconImage(Image image)
      Overrides:
      setIconImage in class Window