Class DatabaseHelpDialog

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

public class DatabaseHelpDialog extends JDialog
Dialog to help the user select the correct database.
Author:
Harald Barsnes
See Also:
  • Constructor Details

    • DatabaseHelpDialog

      public DatabaseHelpDialog(PeptideShakerGUI peptideShakerGUI, com.compomics.util.experiment.io.biology.protein.FastaParameters fastaParameters, com.compomics.util.io.file.LastSelectedFolder lastSelectedFolder, boolean modal, String species)
      Creates a new DatabaseHelpDialog.
      Parameters:
      peptideShakerGUI - the PeptideShakerGUI parent
      fastaParameters - the FASTA parameters
      lastSelectedFolder - the last selected folder
      modal - if the dialog is to be modal or not
      species - the current species
  • Method Details

    • renameFastaFileName

      public void renameFastaFileName()
      Copies the content of the FASTA file to a new file and replaces any white space in the file name with '_' instead.
    • validateParametersInput

      public boolean validateParametersInput(boolean showMessage)
      Inspects the parameters validity.
      Parameters:
      showMessage - if true an error messages are shown to the users
      Returns:
      a boolean indicating if the parameters are valid
    • getLastSelectedFolder

      public String getLastSelectedFolder(com.compomics.util.io.file.LastSelectedFolder lastSelectedFolder)
      Returns the last selected folder.
      Parameters:
      lastSelectedFolder - the last selected folder
      Returns:
      the last selected folder