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
*/
public final class JavaUI {
- private static ISharedImages fgSharedImages = null;
+// private static ISharedImages fgSharedImages = null;
private JavaUI() {
// prevent instantiation of 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
* 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
*
* @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
* @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
* @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.