Skip to content

check if plugin called with valid file path string#12

Open
lukebfunk wants to merge 2 commits intofiji:masterfrom
lukebfunk:master
Open

check if plugin called with valid file path string#12
lukebfunk wants to merge 2 commits intofiji:masterfrom
lukebfunk:master

Conversation

@lukebfunk
Copy link
Copy Markdown

@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
Copy Markdown
Member

ctrueden commented Sep 9, 2019

@rejsmont Do you have time to review this?

@rejsmont
Copy link
Copy Markdown
Collaborator

rejsmont commented Sep 10, 2019 via email

} while (tryAgain);


if (arg != null && arg.endsWith("hdf")){
Copy link
Copy Markdown
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
Copy Markdown
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