Fix open help with new menu item "Source or javadoc for class or package..."#46
Merged
acardona merged 7 commits intoscijava:masterfrom Nov 29, 2020
Merged
Fix open help with new menu item "Source or javadoc for class or package..."#46acardona merged 7 commits intoscijava:masterfrom
acardona merged 7 commits intoscijava:masterfrom
Conversation
This can happen when using a networked account across different computers or with different monitors.
and collect info and URLs from their pom.xml
fixes or replaces the "Open Help" menu item, by using ClassUtils and showing a UI that lists all matching classes with buttons to open their source code in github or gitlab and the javadoc when available (will guess the URL, load it, and not show a link to it when 404). Can match partial text (the list of possible classes may be longer) and can also match package names or partial package names. Any substring of a fully qualified class name will be matched, which is fabulous. (Compare with current implementatio nof "Open Help..." which requires a fully qualified class name to work, which is not useful as often one does not know it or not have it handy in a script.)
|
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: |
of package suffixes comes from java 8.
for other directories.
for a name that matches a subURL of javadoc.scijava.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create new menu item "Source or javadoc for class or package..." which fixes or replaces the "Open Help" menu item, by using ClassUtils and showing a UI that lists all matching classes with buttons to open their source code in github or gitlab and the javadoc when available (will guess the URL, load it, and not show a link to it when 404).
Can match partial text (the list of possible classes may be longer) and can also match package names or partial package names. Any substring of a fully qualified class name will be matched, which is fabulous.
(Compare with current implementation of "Open Help..." which requires a fully qualified class name to work, which is not useful as often one does not know it or not have it handy in a script.)