Refactory: remove unused classes, imports, fields and methods.
authorincastrix <incastrix>
Wed, 23 Dec 2009 17:32:28 +0000 (17:32 +0000)
committerincastrix <incastrix>
Wed, 23 Dec 2009 17:32:28 +0000 (17:32 +0000)
net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/WebBrowser.java
net.sourceforge.phpeclipse.webbrowser/src/net/sourceforge/phpeclipse/webbrowser/WebBrowserEditorInput.java

index 69c82a7..a9b5b45 100644 (file)
  */
 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
index 1f4681f..52820a0 100644 (file)
@@ -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