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

Fix browser problem rebased #146

Merged

Conversation

jeckhart
Copy link
Contributor

This is a partial fix for Issue #128

The problem is that new Browser will throw an exception when it can't find a proper browser. When this happens it interupts the rest of the preferences configuration and eclipse-color-theme is not functional in this state.

This fix handles the case where the browser cannot load and allows the rest of the preferences dialog to construct minus the preview pane.

I also add the bundles to the manifest that were already used by the project to create the preferences dialog (swt and ui.forms).

@jeckhart jeckhart mentioned this pull request Oct 29, 2013
browser = new Browser(themeDetails, SWT.BORDER);
browser.setLayoutData(gridData);
browser.setText("<html><body></body></html>");
if (getBrowser() != null) {
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer a temp here, e.g.:

Browser browser = getBrowser();
if (browser != null) {
...

@fhd
Copy link
Member

fhd commented Oct 30, 2013

Some of my usual nit picking, otherwise good to go! 😄

@jeckhart
Copy link
Contributor Author

jeckhart commented Nov 6, 2013

Fixed the formatting. Let me know if there is anything else you'ld like.

fhd added a commit that referenced this pull request Nov 6, 2013
@fhd fhd merged commit 90c1e1c into eclipse-color-theme:master Nov 6, 2013
@fhd
Copy link
Member

fhd commented Nov 6, 2013

Nope, I'm happy now 😄 Thanks again for your work and patience 😄

@jeckhart jeckhart deleted the fix-browser-problem-rebased branch November 8, 2013 05:13
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.

None yet

2 participants