-
Notifications
You must be signed in to change notification settings - Fork 152
FileDownloadTask and parameter to download external assets #1986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
SteffenHeu
left a comment
There was a problem hiding this 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
mzmine-community/src/main/java/io/github/mzmine/modules/io/download/DownloadAssets.java
Outdated
Show resolved
Hide resolved
| * Fixed details on external assets. See also {@link DownloadAsset} to define new downloads. | ||
| */ | ||
| public enum ExternalAsset { | ||
| ThermoRawFileParser, MSCONVERT, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
mzmine-community/src/main/java/io/github/mzmine/modules/io/download/FileDownloadTask.java
Outdated
Show resolved
Hide resolved
mzmine-community/src/main/java/io/github/mzmine/modules/io/download/FileDownloader.java
Outdated
Show resolved
Hide resolved
...ty/src/main/java/io/github/mzmine/parameters/parametertypes/filenames/FileNameComponent.java
Outdated
Show resolved
Hide resolved
…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
|
Addressed all comments |
This adds a FileDownloadTask that downloads DownloadAsset that are defined as ExternalAsset.
Also adds a new parameter that allows asset download or manual selection:
I added two examples to the DemoParameters (quick accessL PreDemo Module)