-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add an Open button to open the webbrowser from control panel #1080
Conversation
Seaside works on Pharo 4, 5 and 6 which does not includes WebBrowser. Either we should have an information message saying that the feature is only available in the class is in the system if the class is missing. Or we should add WebBrowser as dependency for Pharo < 7. |
But in any case I think WebBrowser is not working on Pharo 4 |
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.
Pharo < 7 needs to give feedback to the user instead of an error.
The code could be:
self class environment at: #WebBrowser ifPresent: [ :webBrowser | webBrowser openOn: url ] ifAbsent: [ self inform: ('Cannot open "{1}" because the project WebBrowser is not present by default in Pharo < 7.' format: { url }) ]
Pharo 4 will not have git anyway, no? |
Seaside is still loadable in pharo 4. You don’t have Iceberg but FileTree still work. |
Is this really a use case? Johan will convert to Tonel so we have Windows back on track once an issue with Tonel converter is sorted out. Do we really have known users of P4 with FileTree? |
Filetree will stay for a while because Squeak does not have a tonel support anyway and the repo is also for squeak. |
@jecisc It's a change in "Seaside-Pharo-Tools-Spec", not a Squeak one if I'm not mistaken. Squeak also does not have Spec. |
Yes but we can't have one package in tonel format and the others in filetree. |
Yes - but we will have a branch with Tonel, otherwise we shoot Windows out of the Seaside game |
I think that the goal is not to split the development into two branches and to have differences between the two of them. |
I guess the idea is to keep the development in file tree for now (until the rest catches up) - but nonetheless provide tonel converted versions (at least for the releases) so it could be loaded on Windows. Anyhow ... this gets offtopic now. |
Yes, so the code should be the same between both, else it will make it really hard to sync. |
@astares Can you make the requested change? |
The new Spec2 based control panel includes such an open button. Closing this PR in favor of #1155 . |
👍 |
Add an "Open" button to Seaside adapter control panel to quicky open a WebBrowser on the adapter itself