*
* @param listener
*/
- public void addWebBrowserListener(IWebBrowserListener listener) {
- browserListeners.add(listener);
- }
+// public void addWebBrowserListener(IWebBrowserListener listener) {
+// browserListeners.add(listener);
+// }
/**
* Remove Web browser listener.
*
* @param listener
*/
- public void removeWebBrowserListener(IWebBrowserListener listener) {
- browserListeners.remove(listener);
- }
+// public void removeWebBrowserListener(IWebBrowserListener listener) {
+// browserListeners.remove(listener);
+// }
/**
* Fire a Web browser event.
/**
* Return the image or <code>null</code>.
*/
- public Image getImage() {
- return image;
- }
+// public Image getImage() {
+// return image;
+// }
/**
* Returns true if it is currently busy.
protected String name;
- public Favorite() {
- }
+// public Favorite() {
+// }
public Favorite(String name, String url) {
if (name == null)
combo.setText(temp);
}
- public void addProgressListener(ProgressListener listener) {
- browser.addProgressListener(listener);
- }
+// public void addProgressListener(ProgressListener listener) {
+// browser.addProgressListener(listener);
+// }
- public void addStatusTextListener(StatusTextListener listener) {
- browser.addStatusTextListener(listener);
- }
+// public void addStatusTextListener(StatusTextListener listener) {
+// browser.addStatusTextListener(listener);
+// }
- public void addTitleListener(TitleListener listener) {
- browser.addTitleListener(listener);
- }
+// public void addTitleListener(TitleListener listener) {
+// browser.addTitleListener(listener);
+// }
}
\ No newline at end of file
import net.sourceforge.phpeclipse.webbrowser.WebBrowserEditorInput;
import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IMarker;
+//import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceChangeEvent;
import org.eclipse.core.resources.IResourceChangeListener;
*
* @see IEditorPart
*/
- public void gotoMarker(IMarker marker) {
- }
+// public void gotoMarker(IMarker marker) {
+// }
/*
* (non-Javadoc) Initializes the editor part with a site and input. <p>
*
* @return boolean
*/
- public boolean isToolbarVisible() {
- IWebBrowserEditorInput input = getWebBrowserEditorInput();
- if (input == null || input.isToolbarVisible())
- return true;
- else
- return false;
- }
+// public boolean isToolbarVisible() {
+// IWebBrowserEditorInput input = getWebBrowserEditorInput();
+// if (input == null || input.isToolbarVisible())
+// return true;
+// else
+// return false;
+// }
/**
* Open the input in the internal Web browser.
private static List unlockedFavorites;
- private static final String BROWSER_PACKAGE_NAME = "org.eclipse.swt.browser.Browser";
+ //private static final String BROWSER_PACKAGE_NAME = "org.eclipse.swt.browser.Browser";
public static Boolean isInternalBrowserOperational;
/**
* WebBrowserUtil constructor comment.
*/
- public WebBrowserUtil() {
- super();
- }
+// public WebBrowserUtil() {
+// super();
+// }
/**
* Returns true if we're running on Windows.
*
* @return boolean
*/
- public static boolean isLinux() {
- String os = System.getProperty("os.name");
- if (os != null && os.toLowerCase().indexOf("lin") >= 0)
- return true;
- else
- return false;
- }
+// public static boolean isLinux() {
+// String os = System.getProperty("os.name");
+// if (os != null && os.toLowerCase().indexOf("lin") >= 0)
+// return true;
+// else
+// return false;
+// }
/**
* Open a dialog window.
*
* @return boolean
*/
- public static boolean canUseInternalWebBrowser() {
- try {
- Class clazz = Class.forName(BROWSER_PACKAGE_NAME);
- if (clazz != null)
- return true;
- } catch (ClassNotFoundException e) {
- }
- return false;
- }
+// public static boolean canUseInternalWebBrowser() {
+// try {
+// Class clazz = Class.forName(BROWSER_PACKAGE_NAME);
+// if (clazz != null)
+// return true;
+// } catch (ClassNotFoundException e) {
+// }
+// return false;
+// }
/**
* This method checks to see if it can new up a new Browser. If the SWT
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.browser.CloseWindowListener;
-import org.eclipse.swt.browser.ProgressListener;
-import org.eclipse.swt.browser.StatusTextListener;
-import org.eclipse.swt.browser.TitleListener;
+//import org.eclipse.swt.browser.ProgressListener;
+//import org.eclipse.swt.browser.StatusTextListener;
+//import org.eclipse.swt.browser.TitleListener;
import org.eclipse.swt.browser.WindowEvent;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.IShowInTarget;
}
}
- public void addProgressListener(ProgressListener listener) {
- if (fInstance != null) {
- fInstance.addProgressListener(listener);
- }
- }
-
- public void addStatusTextListener(StatusTextListener listener) {
- if (fInstance != null) {
- fInstance.addStatusTextListener(listener);
- }
- }
-
- public void addTitleListener(TitleListener listener) {
- if (fInstance != null) {
- fInstance.addTitleListener(listener);
- }
- }
+// public void addProgressListener(ProgressListener listener) {
+// if (fInstance != null) {
+// fInstance.addProgressListener(listener);
+// }
+// }
+
+// public void addStatusTextListener(StatusTextListener listener) {
+// if (fInstance != null) {
+// fInstance.addStatusTextListener(listener);
+// }
+// }
+
+// public void addTitleListener(TitleListener listener) {
+// if (fInstance != null) {
+// fInstance.addTitleListener(listener);
+// }
+// }
public boolean show(ShowInContext context) {
if (context instanceof ShowInContextBrowser) {