Skip to content
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

check if plugin called with valid file path string #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lukebfunk
Copy link

@lukebfunk lukebfunk commented Sep 8, 2019

Before opening a file selection dialog window, checks if plugin has been called with a valid file path string. This is very useful if you want to enable drag-and-drop file opening (without the dialog popping up every time) by setting relevant file types to open with HDF5_Reader_Vibez in HandleExtraFileTypes.java within FIJI's IO package.

Useful for enabling drag-and-drop open by adding HDF_Reader_Vibez in HandleExtraFileTypes.java within IO as default for hdf files
@ctrueden
Copy link
Member

ctrueden commented Sep 9, 2019

@rejsmont Do you have time to review this?

@rejsmont
Copy link
Collaborator

rejsmont commented Sep 10, 2019 via email

} while (tryAgain);


if (arg != null && arg.endsWith("hdf")){
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi @lukebfunk,

.hdf is not the only valid extension for hdf5 files. The other options and .h5and .hdf5. Please update your code to reflect this.

@rejsmont
Copy link
Collaborator

Also, this seems to be simple to make unit tests for. I would greatly appreciate if you had some time to do that!

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.

3 participants