* <code>null</code> if none.
* @return the {@link WebBrowserInput} created to show the link or
* <code>null</code> if it could not be created.
*/
public static WebBrowserView openLinkInternal(String href, WebBrowserContext context) {
WebBrowserView view = null;
try {
IPreferenceScope eclipsePreferences = Owl.getPreferenceService().getEclipseScope();
IPreferenceScope owlPreferences = Owl.getPreferenceService().getGlobalScope();
WebBrowserInput input = new WebBrowserInput(href, context);
IWorkbenchPage page = OwlUI.getPage();
if (page != null) {
boolean multipleTabs = eclipsePreferences.getBoolean(DefaultPreferences.ECLIPSE_MULTIPLE_TABS);
boolean openInBackground = owlPreferences.getBoolean(DefaultPreferences.OPEN_BROWSER_IN_BACKGROUND);
boolean reuseTab = owlPreferences.getBoolean(DefaultPreferences.ALWAYS_REUSE_BROWSER);
/* Try to Reuse existing Browser first if set */
if (reuseTab) {
WebBrowserView browser = OwlUI.getFirstActiveBrowser();
if (browser != null) {
browser.setInput(input);
if (!openInBackground)
page.activate(browser);
return browser;
}