Refactory: remove unused classes, imports, fields and methods.
[phpeclipse.git] / net.sourceforge.phpeclipse.ui / src / net / sourceforge / phpdt / ui / JavaUI.java
index ae2fecf..e4f597c 100644 (file)
 package net.sourceforge.phpdt.ui;
 
 import net.sourceforge.phpdt.core.IBufferFactory;
-import net.sourceforge.phpdt.core.IJavaElement;
-import net.sourceforge.phpdt.core.IWorkingCopy;
-import net.sourceforge.phpdt.core.JavaCore;
-import net.sourceforge.phpdt.core.JavaModelException;
+//import net.sourceforge.phpdt.core.IJavaElement;
+//import net.sourceforge.phpdt.core.IWorkingCopy;
+//import net.sourceforge.phpdt.core.JavaCore;
+//import net.sourceforge.phpdt.core.JavaModelException;
 import net.sourceforge.phpeclipse.PHPeclipsePlugin;
-import net.sourceforge.phpeclipse.phpeditor.EditorUtility;
-import net.sourceforge.phpeclipse.ui.WebUI;
+//import net.sourceforge.phpeclipse.phpeditor.EditorUtility;
+//import net.sourceforge.phpeclipse.ui.WebUI;
 
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.ISharedImages;
-import org.eclipse.ui.PartInitException;
-import org.eclipse.ui.internal.SharedImages;
-import org.eclipse.ui.texteditor.IDocumentProvider;
+//import org.eclipse.ui.IEditorPart;
+//import org.eclipse.ui.ISharedImages;
+//import org.eclipse.ui.PartInitException;
+//import org.eclipse.ui.internal.SharedImages;
+//import org.eclipse.ui.texteditor.IDocumentProvider;
 
 /**
  * Central access point for the Java UI plug-in (id
@@ -41,7 +41,7 @@ import org.eclipse.ui.texteditor.IDocumentProvider;
  */
 public final class JavaUI {
 
-       private static ISharedImages fgSharedImages = null;
+//     private static ISharedImages fgSharedImages = null;
 
        private JavaUI() {
                // prevent instantiation of JavaUI.
@@ -208,12 +208,12 @@ public final class JavaUI {
         * 
         * @return the shared images manager
         */
-       public static ISharedImages getSharedImages() {
-               if (fgSharedImages == null)
-                       fgSharedImages = new SharedImages();
-
-               return fgSharedImages;
-       }
+//     public static ISharedImages getSharedImages() {
+//             if (fgSharedImages == null)
+//                     fgSharedImages = new SharedImages();
+//
+//             return fgSharedImages;
+//     }
 
        /**
         * Creates a selection dialog that lists all packages of the given Java
@@ -588,10 +588,10 @@ public final class JavaUI {
         *                if this element does not exist or if an exception occurs
         *                while accessing its underlying resource
         */
-       public static IEditorPart openInEditor(IJavaElement element)
-                       throws JavaModelException, PartInitException {
-               return EditorUtility.openInEditor(element);
-       }
+//     public static IEditorPart openInEditor(IJavaElement element)
+//                     throws JavaModelException, PartInitException {
+//             return EditorUtility.openInEditor(element);
+//     }
 
        /**
         * Reveals the source range of the given source reference element in the
@@ -637,9 +637,9 @@ public final class JavaUI {
         * 
         * @return the working copy manager for the Java UI plug-in
         */
-       public static IWorkingCopyManager getWorkingCopyManager() {
-               return WebUI.getDefault().getWorkingCopyManager();
-       }
+//     public static IWorkingCopyManager getWorkingCopyManager() {
+//             return WebUI.getDefault().getWorkingCopyManager();
+//     }
 
        /**
         * Answers the shared working copies currently registered for the Java
@@ -651,9 +651,9 @@ public final class JavaUI {
         * @see net.sourceforge.phpdt.core.JavaCore#getSharedWorkingCopies(net.sourceforge.phpdt.core.IBufferFactory)
         * @since 2.0
         */
-       public static IWorkingCopy[] getSharedWorkingCopies() {
-               return JavaCore.getSharedWorkingCopies(getBufferFactory());
-       }
+//     public static IWorkingCopy[] getSharedWorkingCopies() {
+//             return JavaCore.getSharedWorkingCopies(getBufferFactory());
+//     }
 
        /**
         * Answers the shared working copies that are on the class path of a Java
@@ -704,10 +704,10 @@ public final class JavaUI {
         * @see IDocumentProvider
         * @since 2.0
         */
-       public static IDocumentProvider getDocumentProvider() {
-               return WebUI.getDefault()
-                               .getCompilationUnitDocumentProvider();
-       }
+//     public static IDocumentProvider getDocumentProvider() {
+//             return WebUI.getDefault()
+//                             .getCompilationUnitDocumentProvider();
+//     }
 
        /**
         * Sets the Javadoc location for an archive with the given path.