Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Add an Open button to open the webbrowser from control panel #1080

wants to merge 1 commit into from

Conversation

astares
Copy link
Contributor

@astares astares commented Dec 20, 2018

Add an "Open" button to Seaside adapter control panel to quicky open a WebBrowser on the adapter itself

@astares
Copy link
Contributor Author

astares commented Dec 20, 2018

screenshot from 2018-12-20 01-30-10

@jecisc
Copy link
Member

jecisc commented Dec 22, 2018

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.

@jecisc
Copy link
Member

jecisc commented Dec 22, 2018

But in any case I think WebBrowser is not working on Pharo 4

Copy link
Member

@jecisc jecisc left a 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 }) ] 

@astares
Copy link
Contributor Author

astares commented Dec 22, 2018

Pharo 4 will not have git anyway, no?

@jecisc
Copy link
Member

jecisc commented Dec 22, 2018

Seaside is still loadable in pharo 4.

You don’t have Iceberg but FileTree still work.

@astares
Copy link
Contributor Author

astares commented Feb 14, 2019

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?

@jecisc
Copy link
Member

jecisc commented Feb 14, 2019

Filetree will stay for a while because Squeak does not have a tonel support anyway and the repo is also for squeak.

@astares
Copy link
Contributor Author

astares commented Feb 14, 2019

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

@jecisc
Copy link
Member

jecisc commented Feb 14, 2019

Yes but we can't have one package in tonel format and the others in filetree.

@astares
Copy link
Contributor Author

astares commented Feb 14, 2019

Yes - but we will have a branch with Tonel, otherwise we shoot Windows out of the Seaside game

@jecisc
Copy link
Member

jecisc commented Feb 14, 2019

I think that the goal is not to split the development into two branches and to have differences between the two of them.

@astares
Copy link
Contributor Author

astares commented Feb 14, 2019

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.

@jecisc
Copy link
Member

jecisc commented Feb 14, 2019

Yes, so the code should be the same between both, else it will make it really hard to sync.

@jbrichau jbrichau changed the base branch from develop to master June 28, 2019 06:14
@jbrichau
Copy link
Member

@astares I moved this PR to merge into master when accepted. I did not take a look at the code but I agree with @jecisc comments that the code should do feature detection so that it only gets added when the WebBrowser class is present.

@theseion
Copy link
Member

@astares Can you make the requested change?

@theseion
Copy link
Member

The new Spec2 based control panel includes such an open button. Closing this PR in favor of #1155 .

@theseion theseion closed this Aug 26, 2019
@astares
Copy link
Contributor Author

astares commented Aug 28, 2019

👍

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.

4 participants