X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/JavaUI.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/JavaUI.java index 4f37f42..79fc6e1 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/JavaUI.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/JavaUI.java @@ -11,18 +11,18 @@ 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 @@ -40,7 +40,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. @@ -55,8 +55,8 @@ public final class JavaUI { * The id of the Java perspective (value * "net.sourceforge.phpdt.ui.JavaPerspective"). */ - // 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 * "net.sourceforge.phpdt.ui.JavaHierarchyPerspective"). @@ -207,12 +207,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 @@ -587,10 +587,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 @@ -636,9 +636,9 @@ public final class JavaUI { * * @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 @@ -650,9 +650,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 @@ -703,10 +703,10 @@ public final class JavaUI { * @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.