-
Notifications
You must be signed in to change notification settings - Fork 187
Simplify control example browser tab content loading #2286
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
Conversation
laeubi
left a comment
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.
It seems a bit odd to read in everything as lines just to later join them again .. you can consider using getAllBytes() and wrap into a string directly instead of using a BufferedReader...
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/BrowserTab.java
Outdated
Show resolved
Hide resolved
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/BrowserTab.java
Outdated
Show resolved
Hide resolved
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/BrowserTab.java
Show resolved
Hide resolved
a3a7ce4 to
fe60b56
Compare
|
Thanks for giving it more thought (it should be good now) - I just did the first thing that came to my mind as it was already a simplification :). |
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/controlexample/BrowserTab.java
Outdated
Show resolved
Hide resolved
Going symbol by symbol nowadays is just time lost and even makes code harder to read. Load as UTF-8 to ease testing with various content. Fix warnings in browser-content.html
laeubi
left a comment
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.
Looks good to me.
|
This change in snippets can not make SWT.test_isLocal to fail and this issue has happened last week in another PR. Merging. |
Going symbol by symbol nowadays is just time lost and even makes code harder to read.