Skip to content

New links in "Help" menu for issues and forum #1210

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

lassevonpfeil
Copy link

Added two links to the help menu bar. Opens either processing forum or GitHub issues tab in standard browser when clicked. Resolves Issue #1208
Implemented the new features in JavaEditor.java and also provided German language support.
Used Desktop.getDesktop() and then Desktop.browse(oURL) to follow the link.
I Placed the MenuItems between "Download official reference" and "library reference".

I will change the code ASAP when somethings bugging or the I messed up with the style guidelines.

@lassevonpfeil
Copy link
Author

Added no tests btw. Works bug-free on MacOS 15.6 and should work universally.

@lassevonpfeil lassevonpfeil changed the title New links in "Help" menu for issues and forum #1208 New links in "Help" menu for issues and forum Aug 15, 2025
@SableRaf SableRaf requested a review from catilac August 20, 2025 11:43
Copy link
Contributor

@catilac catilac left a comment

Choose a reason for hiding this comment

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

Hi! Great work on this! I am curious about which version of Java you are using. We use Eclipse Temurin 17. I believe if you set that SDK then you will see that desktop.browse() will throw an exception.

here is an example in the file of the pattern you'll want to follow:

    item = new JMenuItem(Language.text("menu.help.getting_started"));
    item.addActionListener(e -> Platform.openURL(Language.text("menu.help.getting_started.url")));
    menu.add(item);

Copy link
Author

@lassevonpfeil lassevonpfeil left a comment

Choose a reason for hiding this comment

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

Changed used method to Platform.openURL(). Should now work universally.

Comment on lines 39 to 41
import java.net.URI;
import java.net.URISyntaxException;

Copy link
Contributor

Choose a reason for hiding this comment

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

Are these necessary anymore? If not please remove, and then this is ready to be approved! 🎉

Copy link
Author

@lassevonpfeil lassevonpfeil left a comment

Choose a reason for hiding this comment

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

Okay, removed the imports now. I personally think it looks good now. But of course I would love to make some changes if needed.

Copy link
Contributor

@catilac catilac left a comment

Choose a reason for hiding this comment

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

Thank you!

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.

2 participants