GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix open help with new menu item "Source or javadoc for class or package..." by acardona · Pull Request #46 · scijava/script-editor

Conversation

@acardona

@acardona acardona commented Nov 14, 2020

Copy link
Copy Markdown
Collaborator

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.)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

haesleinhuepf reacted with heart emoji
All reactions
  • ❤️ 1 reaction
acardona added 3 commits November 14, 2020 01:19
@acardona
Prevent Script Editor window from being larger than the desktop.
7507734
This can happen when using a networked account across different computers
or with different monitors.
@acardona
ClassUtil: inspect all jar files in search of all class names,
0a1b443
and collect info and URLs from their pom.xml
@acardona
Create new menu item "Source or javadoc for class or package..." which
80fd9dd
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.)
@imagesc-bot

imagesc-bot commented Nov 14, 2020

Copy link
Copy Markdown

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/fixing-open-help-in-the-script-editor-find-documentation-and-source-code-for-java-classes/45330/1

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

acardona added 4 commits November 14, 2020 10:36
@acardona
Ensure the correct java version is used, although the list
5cf2a7a
of package suffixes comes from java 8.
@acardona
ClassUtil: generalize static method findAllClasses so that it an be used
4583ccf
for other directories.
@acardona
If a classname doesn't have any URLS associated with it, then search
3020432
in DuckDuckGo.
@acardona
ClassUtil: search among the multiple words in the repository name
d8b7d32
for a name that matches a subURL of javadoc.scijava.org
@acardona acardona mentioned this pull request Nov 19, 2020
Autocompletion of imports, class names, and static fields and methods after a classname #47
Merged
@acardona
acardona merged commit d8b7d32 into scijava:master Nov 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@acardona @imagesc-bot
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.