1 11 package org.eclipse.jdt.internal.ui.actions; 12 13 import java.net.URL ; 14 15 import org.eclipse.swt.custom.BusyIndicator; 16 import org.eclipse.swt.widgets.Display; 17 18 import org.eclipse.ui.PlatformUI; 19 20 public class OpenBrowserUtil { 21 22 public static void open(final URL url, Display display, final String dialogTitle) { 23 display.syncExec(new Runnable () { 24 public void run() { 25 internalOpen(url, dialogTitle); 26 } 27 }); 28 } 29 30 private static void internalOpen(final URL url, String title) { 31 BusyIndicator.showWhile(null, new Runnable () { 32 public void run() { 33 PlatformUI.getWorkbench().getHelpSystem().displayHelpResource(url.toExternalForm() + "?noframes=true"); } 35 }); 36 } 37 } 38 | Popular Tags |