-
-
Notifications
You must be signed in to change notification settings - Fork 24
add native macOS application menu integration #454
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
base: master
Are you sure you want to change the base?
Conversation
Implement SWT.ID_ABOUT and SWT.ID_PREFERENCES handlers to hook into the native macOS application menu (About/Preferences).
Centralize OS detection logic in ViewProperties.isMacOS() and replace inline checks.
Extract openUserOptionsDialog logic from createMenuBar to support reuse between the Tools menu and the macOS system menu.
Improve code readability by renaming semantic user option nodes and adding error logging for font creation failures.
- maven-quality.yml: Use latest HDF5 snapshot with dynamic version detection - ci-macos.yml: Add debugging output and flexible archive detection - Both: Handle varying inner archive naming conventions"
… string is used multiple times
| # Determine file pattern based on whether base name is provided | ||
| if [ -n "${{ inputs.hdf4_artifact_basename }}" ]; then | ||
| PATTERN="${{ inputs.hdf4_artifact_basename }}-ubuntu-2404_gcc.tar.gz" | ||
| PATTERN="${{ inputs.hdf4_artifact_basename }}-ubuntu-*_gcc.tar.gz" |
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.
I removed the globbing here because when there are multiple artifacts in the resulting tarball, the glob parsing will fail. I think this is probably only showing up as a diff since the master branch has been updated.
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.
The problem is that if the runners get updated, "2404" will fail.
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.
I'm not opposed to making the version handling more generic, but this should be done in a separate PR away from the menu changes.
mattjala
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 good to go in once it's synced with master to remove the workflow changes
Dynamic HDF4 version detection (uses latest release by default) Performance fix for ViewProperties.isMacOS() (cached at class load time) Standardized input handling across all workflows
Important
Integrate native macOS application menu items for About and Preferences in HDFView, centralize macOS detection, refactor code for reusability, and update GitHub workflows for dynamic versioning.
SWT.ID_ABOUTandSWT.ID_PREFERENCEShandlers inHDFView.javafor macOS application menu integration.ViewProperties.isMacOS().openUserOptionsDialoglogic inHDFView.javafor reuse.build-linux.yml,ci-linux.yml,ci-macos.yml,ci-windows.yml,maven-ci-orchestrator.yml,maven-quality.yml,maven-security.yml,publish-maven-packages.yml, andrelease-files.ymlto handle dynamic versioning and artifact naming for HDF4 and HDF5.HDFView.java.HDFView.java.This description was created by
for d78b66d. You can customize this summary. It will automatically update as commits are pushed.