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.phpeditor.EditorUtility;
-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.
* The id of the Java perspective (value
* <code>"net.sourceforge.phpdt.ui.JavaPerspective"</code>).
*/
- // public static final String ID_PERSPECTIVE=
- // "net.sourceforge.phpdt.ui.JavaPerspective"; //$NON-NLS-1$
+ public static final String ID_PERSPECTIVE=
+ "net.sourceforge.phpdt.ui.JavaPerspective"; //$NON-NLS-1$
/**
* The id of the Java hierarchy perspective (value
* <code>"net.sourceforge.phpdt.ui.JavaHierarchyPerspective"</code>).
*
* @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 PHPeclipsePlugin.getDefault().getWorkingCopyManager();
- }
+// public static IWorkingCopyManager getWorkingCopyManager() {
+// return PHPeclipsePlugin.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 PHPeclipsePlugin.getDefault()
- .getCompilationUnitDocumentProvider();
- }
+// public static IDocumentProvider getDocumentProvider() {
+// return PHPeclipsePlugin.getDefault()
+// .getCompilationUnitDocumentProvider();
+// }
/**
* Sets the Javadoc location for an archive with the given path.