core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/extension/AbstractBrowserPortalPageLayer.java
equal
deleted
inserted
replaced
16 */ |
16 */ |
17 package com.nokia.carbide.internal.discovery.ui.extension; |
17 package com.nokia.carbide.internal.discovery.ui.extension; |
18 |
18 |
19 import java.net.MalformedURLException; |
19 import java.net.MalformedURLException; |
20 import java.net.URL; |
20 import java.net.URL; |
|
21 import java.text.MessageFormat; |
21 import java.util.LinkedHashSet; |
22 import java.util.LinkedHashSet; |
22 import java.util.Set; |
23 import java.util.Set; |
23 |
24 |
24 import org.eclipse.jface.action.Action; |
25 import org.eclipse.jface.action.Action; |
25 import org.eclipse.jface.action.IAction; |
26 import org.eclipse.jface.action.IAction; |
135 composite.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND)); |
136 composite.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND)); |
136 composite.setLayout(new FillLayout()); |
137 composite.setLayout(new FillLayout()); |
137 try { |
138 try { |
138 browser = new Browser(composite, SWT.MOZILLA); |
139 browser = new Browser(composite, SWT.MOZILLA); |
139 } catch (SWTError e) { |
140 } catch (SWTError e) { |
140 Activator.logError(Messages.AbstractBrowserPortalPageLayer_BrowserCreateError, e); |
141 // don't log with SWTError as Throwable because it displays a dialog and this may occur and be benign |
|
142 Activator.logError(MessageFormat.format(Messages.AbstractBrowserPortalPageLayer_BrowserCreateError, e.getMessage()), null); |
141 } |
143 } |
142 |
144 |
143 return composite; |
145 return composite; |
144 } |
146 } |
145 |
147 |