From 41360998595bae34183abddd99eb204cbc39551a Mon Sep 17 00:00:00 2001 From: incastrix Date: Wed, 23 Dec 2009 17:32:28 +0000 Subject: [PATCH] Refactory: remove unused classes, imports, fields and methods. --- .../phpeclipse/webbrowser/WebBrowser.java | 54 ++++++++++---------- .../webbrowser/WebBrowserEditorInput.java | 12 ++-- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/WebBrowser.java b/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/WebBrowser.java index 69c82a7..a9b5b45 100644 --- a/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/WebBrowser.java +++ b/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/WebBrowser.java @@ -10,15 +10,15 @@ */ package net.sourceforge.phpeclipse.webbrowser; -import java.net.URL; -import java.util.List; +//import java.net.URL; +//import java.util.List; import net.sourceforge.phpeclipse.webbrowser.internal.BrowserManager; -import net.sourceforge.phpeclipse.webbrowser.internal.ExternalWebBrowserWorkingCopy; +//import net.sourceforge.phpeclipse.webbrowser.internal.ExternalWebBrowserWorkingCopy; import net.sourceforge.phpeclipse.webbrowser.internal.Trace; import net.sourceforge.phpeclipse.webbrowser.internal.WebBrowserEditor; -import net.sourceforge.phpeclipse.webbrowser.internal.WebBrowserUIPlugin; -import net.sourceforge.phpeclipse.webbrowser.internal.WebBrowserUtil; +//import net.sourceforge.phpeclipse.webbrowser.internal.WebBrowserUIPlugin; +//import net.sourceforge.phpeclipse.webbrowser.internal.WebBrowserUtil; import org.eclipse.swt.widgets.Display; @@ -74,9 +74,9 @@ public class WebBrowser { * * @return */ - public static List getWebBrowsers() { - return BrowserManager.getInstance().getWebBrowsers(); - } +// public static List getWebBrowsers() { +// return BrowserManager.getInstance().getWebBrowsers(); +// } /** * Return the current default web browser. @@ -92,18 +92,18 @@ public class WebBrowser { * * @return */ - public static void getCurrentWebBrowser(IWebBrowser browser) { - BrowserManager.getInstance().setCurrentWebBrowser(browser); - } +// public static void getCurrentWebBrowser(IWebBrowser browser) { +// BrowserManager.getInstance().setCurrentWebBrowser(browser); +// } /** * Create a new external Web browser. * * @return */ - public static IExternalWebBrowserWorkingCopy createExternalWebBrowser() { - return new ExternalWebBrowserWorkingCopy(); - } +// public static IExternalWebBrowserWorkingCopy createExternalWebBrowser() { +// return new ExternalWebBrowserWorkingCopy(); +// } /** * Display the given URL in a Web browser. @@ -111,17 +111,17 @@ public class WebBrowser { * @param url * java.net.URL */ - public static void openURL(URL url) { - IWebBrowser browser = getCurrentWebBrowser(); - if (browser != null) - browser.openURL(url); - else { - Display.getDefault().asyncExec(new Runnable() { - public void run() { - WebBrowserUtil.openError(WebBrowserUIPlugin - .getResource("%errorNoBrowser")); - } - }); - } - } +// public static void openURL(URL url) { +// IWebBrowser browser = getCurrentWebBrowser(); +// if (browser != null) +// browser.openURL(url); +// else { +// Display.getDefault().asyncExec(new Runnable() { +// public void run() { +// WebBrowserUtil.openError(WebBrowserUIPlugin +// .getResource("%errorNoBrowser")); +// } +// }); +// } +// } } \ No newline at end of file diff --git a/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/WebBrowserEditorInput.java b/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/WebBrowserEditorInput.java index 1f4681f..52820a0 100644 --- a/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/WebBrowserEditorInput.java +++ b/net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/WebBrowserEditorInput.java @@ -69,9 +69,9 @@ public class WebBrowserEditorInput implements IWebBrowserEditorInput, /** * WebBrowser editor input for the homepage. */ - public WebBrowserEditorInput() { - this(null); - } +// public WebBrowserEditorInput() { +// this(null); +// } /** * WebBrowserEditorInput constructor comment. @@ -102,9 +102,9 @@ public class WebBrowserEditorInput implements IWebBrowserEditorInput, /** * WebBrowserEditorInput constructor comment. */ - public WebBrowserEditorInput(URL url, boolean b) { - this(url); - } +// public WebBrowserEditorInput(URL url, boolean b) { +// this(url); +// } /** * Returns true if this page can reuse the browser that the given input is -- 1.7.1