1 11 package org.eclipse.help.ui.internal.browser; 12 13 import org.eclipse.help.browser.*; 14 import org.eclipse.help.ui.internal.*; 15 import org.eclipse.help.ui.internal.util.*; 16 import org.eclipse.osgi.util.NLS; 17 import org.eclipse.swt.program.*; 18 19 22 public class SystemBrowserAdapter implements IBrowser { 23 String [] cmdarray; 24 25 28 public SystemBrowserAdapter() { 29 } 30 31 34 public void close() { 35 } 36 37 40 public void displayURL(String url) { 41 if (!Program.launch(url)) { 43 HelpUIPlugin 44 .logError( 45 "Browser adapter for System Browser failed. The system has no program registered for file " + url 47 + ". Change the file association or choose a different help web browser in the preferences.", null); 49 ErrorUtil.displayErrorDialog(NLS.bind(Messages.SystemBrowser_noProgramForURL, url)); 50 } 51 } 61 62 65 public boolean isCloseSupported() { 66 return false; 67 } 68 69 72 public boolean isSetLocationSupported() { 73 return false; 74 } 75 76 79 public boolean isSetSizeSupported() { 80 return false; 81 } 82 83 86 public void setLocation(int x, int y) { 87 } 88 89 92 public void setSize(int width, int height) { 93 } 94 } 95 | Popular Tags |