Skip to content

Conversation

@robinschmid
Copy link
Member

@robinschmid robinschmid commented Jul 23, 2024

This adds a FileDownloadTask that downloads DownloadAsset that are defined as ExternalAsset.

Also adds a new parameter that allows asset download or manual selection:

  • download
  • unzip
  • set main file as parameter

I added two examples to the DemoParameters (quick accessL PreDemo Module)

image

Copy link
Member

@SteffenHeu SteffenHeu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice, got some questions/comments

* Fixed details on external assets. See also {@link DownloadAsset} to define new downloads.
*/
public enum ExternalAsset {
ThermoRawFileParser, MSCONVERT,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a tag if we are allowed to download it? If not, only show the website icon and open the page and maybe open the folder where the asset should be saved?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or a dialog for the downloads folder, then we can still do the extraction and move the files to the correct location

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far getDownloadAssets() will just return an empty list. So there will be no options to download and this will only show a button that leads to the website of the tool

…ad-task

# Conflicts:
#	mzmine-community/src/main/java/io/github/mzmine/parameters/parametertypes/filenames/FileNameComponent.java
#	utils/src/main/java/io/github/mzmine/util/files/ExtensionFilters.java
#	utils/src/main/java/io/github/mzmine/util/files/FileAndPathUtil.java
@robinschmid
Copy link
Member Author

Addressed all comments

@SteffenHeu SteffenHeu merged commit 69c395f into mzmine:master Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants