Class SoftwareLocationDialog

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

public class SoftwareLocationDialog extends JDialog
The search engines settings dialog.
Author:
Harald Barsnes
See Also:
  • Constructor Details

    • SoftwareLocationDialog

      public SoftwareLocationDialog(SearchGUI searchGUIMainFrame, boolean modal)
      Creates a new SearchEnginesSettingsDialog.
      Parameters:
      searchGUIMainFrame - reference to the SearchGUI main frame
      modal - if the dialog is to be modal
  • Method Details

    • browseOMSSALocationPressed

      public void browseOMSSALocationPressed()
      This method should be called whenever 'browse' has been pressed for the OMSSA location. It auto-validates the OMSSA location.
    • browseXTandemLocationPressed

      public void browseXTandemLocationPressed()
      This method should be called whenever 'browse' has been pressed for the X!Tandem location. It auto-validates the X!Tandem location.
    • browseMsgfLocationPressed

      public void browseMsgfLocationPressed()
      This method should be called whenever 'browse' has been pressed for the MS-GF+ location. It auto-validates the MS-GF+ location.
    • browseMsAmandaLocationPressed

      public void browseMsAmandaLocationPressed()
      This method should be called whenever 'browse' has been pressed for the MS Amanda location. It auto-validates the MS Amanda location.
    • browseMyriMatchLocationPressed

      public void browseMyriMatchLocationPressed()
      This method should be called whenever 'browse' has been pressed for the MyriMatch location. It auto-validates the MyriMatch location.
    • browseCometLocationPressed

      public void browseCometLocationPressed()
      This method should be called whenever 'browse' has been pressed for the Comet location. It auto-validates the Comet location.
    • browseTideLocationPressed

      public void browseTideLocationPressed()
      This method should be called whenever 'browse' has been pressed for the Tide location. It auto-validates the Tide location.
    • browseAndromedaLocationPressed

      public void browseAndromedaLocationPressed()
      This method should be called whenever 'browse' has been pressed for the Andromeda location. It auto-validates the Andromeda location.
    • browseMetaMorpheusLocationPressed

      public void browseMetaMorpheusLocationPressed()
      This method should be called whenever 'browse' has been pressed for the MetaMorpheus location. It auto-validates the MetaMorpheus location.
    • browseSageLocationPressed

      public void browseSageLocationPressed()
      This method should be called whenever 'browse' has been pressed for the Sage location. It auto-validates the Sage location.
    • browseNovorLocationPressed

      public void browseNovorLocationPressed()
      This method should be called whenever 'browse' has been pressed for the Novor location. It auto-validates the Novor location.
    • browseDirecTagLocationPressed

      public void browseDirecTagLocationPressed()
      This method should be called whenever 'browse' has been pressed for the DirecTag location. It auto-validates the DirecTag location.
    • browseSearchEngineLocationPressed

      public void browseSearchEngineLocationPressed(com.compomics.util.experiment.identification.Advocate advocate, String firstTargetName, JTextField searchEngineLocationTxt)
      This method should be called whenever 'browse' has been pressed for a search engine location. It auto-validates the location.
      Parameters:
      advocate - the search engine advocate
      firstTargetName - the name of the first target
      searchEngineLocationTxt - the text file displaying the search engine location
    • browseSearchEngineLocationPressed

      public void browseSearchEngineLocationPressed(com.compomics.util.experiment.identification.Advocate advocate, String firstTargetName, String secondTargetName, JTextField searchEngineLocationTxt)
      This method should be called whenever 'browse' has been pressed for a search engine location. It auto-validates the location.
      Parameters:
      advocate - the search engine advocate
      firstTargetName - the name of the first target
      secondTargetName - the name of the second target, can be null
      searchEngineLocationTxt - the text file displaying the search engine location
    • validateSearchEngineFolder

      public boolean validateSearchEngineFolder(File aFile, String targetFile)
      This method validates whether the specified folder is the root folder if the given search engine.
      Parameters:
      aFile - file with the search engine root folder
      targetFile - the file required in the search engine root folder
      Returns:
      boolean to indicate whether the correct search engine root folder has been selected.
    • validateSearchEngineFolder

      public boolean validateSearchEngineFolder(File aFile, String targetFile, String secondTargetFile)
      This method validates whether the specified folder is the root folder of the given search engine.
      Parameters:
      aFile - file with the search engine root folder
      targetFile - the file required in the search engine root folder
      secondTargetFile - the second file required in the search engine root folder, can be null
      Returns:
      boolean to indicate whether the correct search engine root folder has been selected.
    • isOmssaEnabled

      public boolean isOmssaEnabled()
      Returns whether OMSSA is enabled.
      Returns:
      a boolean indicating if OMSSA is enabled
    • isXtandemEnabled

      public boolean isXtandemEnabled()
      Returns whether X! Tandem is enabled.
      Returns:
      a boolean indicating if X! Tandem is enabled
    • isMsgfEnabled

      public boolean isMsgfEnabled()
      Returns whether MS-GF+ is enabled.
      Returns:
      a boolean indicating if MS-GF+ is enabled
    • isMsAmandaEnabled

      public boolean isMsAmandaEnabled()
      Returns whether MS Amanda is enabled.
      Returns:
      a boolean indicating if MS Amanda is enabled
    • isMyriMatchEnabled

      public boolean isMyriMatchEnabled()
      Returns whether MyriMatch is enabled.
      Returns:
      a boolean indicating if MyriMatch is enabled
    • isCometEnabled

      public boolean isCometEnabled()
      Returns whether Comet is enabled.
      Returns:
      a boolean indicating if Comet is enabled
    • isTideEnabled

      public boolean isTideEnabled()
      Returns whether Tide is enabled.
      Returns:
      a boolean indicating if Tide is enabled
    • isAndromedaEnabled

      public boolean isAndromedaEnabled()
      Returns whether Andromeda is enabled.
      Returns:
      a boolean indicating if Andromeda is enabled
    • isMetaMorpheusEnabled

      public boolean isMetaMorpheusEnabled()
      Returns whether MetaMorpheus is enabled.
      Returns:
      a boolean indicating if MetaMorpheus is enabled
    • isSageEnabled

      public boolean isSageEnabled()
      Returns whether Sage is enabled.
      Returns:
      a boolean indicating if sage is enabled
    • isNovorEnabled

      public boolean isNovorEnabled()
      Returns whether Novor is enabled.
      Returns:
      a boolean indicating if Novor is enabled
    • isDirecTagEnabled

      public boolean isDirecTagEnabled()
      Returns whether DirecTag is enabled.
      Returns:
      a boolean indicating if DirecTag is enabled
    • getOmssaLocation

      public File getOmssaLocation()
      Returns the OMSSA location.
      Returns:
      the OMSSA location
    • getXtandemLocation

      public File getXtandemLocation()
      Returns the X! Tandem location.
      Returns:
      the X! Tandem location
    • getMsgfLocation

      public File getMsgfLocation()
      Returns the MS-GF+ location.
      Returns:
      the MS-GF+ location
    • getMsAmandaLocation

      public File getMsAmandaLocation()
      Returns the MS Amanda location.
      Returns:
      the MS Amanda location
    • getMyriMatchLocation

      public File getMyriMatchLocation()
      Returns the MyriMatch location.
      Returns:
      the MyriMatch location
    • getCometLocation

      public File getCometLocation()
      Returns the Comet location.
      Returns:
      the Comet location
    • getTideLocation

      public File getTideLocation()
      Returns the Tide location.
      Returns:
      the Tide location
    • getAndromedaLocation

      public File getAndromedaLocation()
      Returns the Andromeda location.
      Returns:
      the Andromeda location
    • getMetaMorpheusLocation

      public File getMetaMorpheusLocation()
      Returns the MetaMorpheus location.
      Returns:
      the MetaMorpheus location
    • getSageLocation

      public File getSageLocation()
      Returns the Sage location.
      Returns:
      the Sage location
    • getNovorLocation

      public File getNovorLocation()
      Returns the Novor location.
      Returns:
      the Novor location
    • getDirecTagLocation

      public File getDirecTagLocation()
      Returns the DirecTag location.
      Returns:
      the DirecTag location
    • getMakeblastdbLocation

      public File getMakeblastdbLocation()
      Returns the makeblastdb location.
      Returns:
      the makeblastdb location