X-Git-Url: http://secure.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 23ff50e..db03eaa 100644
--- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/JavaUI.java
+++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ui/JavaUI.java
@@ -14,10 +14,9 @@ import net.sourceforge.phpdt.core.IBufferFactory;
import net.sourceforge.phpdt.core.IJavaElement;
import net.sourceforge.phpdt.core.IWorkingCopy;
import net.sourceforge.phpdt.core.JavaModelException;
-import net.sourceforge.phpeclipse.PHPCore;
+import net.sourceforge.phpdt.core.JavaCore;
import net.sourceforge.phpeclipse.PHPeclipsePlugin;
import net.sourceforge.phpeclipse.phpeditor.EditorUtility;
-import net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.ISharedImages;
@@ -26,7 +25,7 @@ import org.eclipse.ui.internal.SharedImages;
import org.eclipse.ui.texteditor.IDocumentProvider;
/**
- * Central access point for the Java UI plug-in (id "org.eclipse.jdt.ui"
).
+ * Central access point for the Java UI plug-in (id "net.sourceforge.phpdt.ui"
).
* This class provides static methods for:
*
"org.eclipse.jdt.ui"
).
+ * The id of the Java plugin (value "net.sourceforge.phpdt.ui"
).
*/
-// public static final String ID_PLUGIN= "org.eclipse.jdt.ui"; //$NON-NLS-1$
+// public static final String ID_PLUGIN= "net.sourceforge.phpdt.ui"; //$NON-NLS-1$
/**
* The id of the Java perspective
- * (value "org.eclipse.jdt.ui.JavaPerspective"
).
+ * (value "net.sourceforge.phpdt.ui.JavaPerspective"
).
*/
-// public static final String ID_PERSPECTIVE= "org.eclipse.jdt.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 "org.eclipse.jdt.ui.JavaHierarchyPerspective"
).
+ * (value "net.sourceforge.phpdt.ui.JavaHierarchyPerspective"
).
*/
-// public static final String ID_HIERARCHYPERSPECTIVE= "org.eclipse.jdt.ui.JavaHierarchyPerspective"; //$NON-NLS-1$
+// public static final String ID_HIERARCHYPERSPECTIVE= "net.sourceforge.phpdt.ui.JavaHierarchyPerspective"; //$NON-NLS-1$
/**
* The id of the Java action set
- * (value "org.eclipse.jdt.ui.JavaActionSet"
).
+ * (value "net.sourceforge.phpdt.ui.JavaActionSet"
).
*/
-// public static final String ID_ACTION_SET= "org.eclipse.jdt.ui.JavaActionSet"; //$NON-NLS-1$
+// public static final String ID_ACTION_SET= "net.sourceforge.phpdt.ui.JavaActionSet"; //$NON-NLS-1$
/**
* The id of the Java Element Creation action set
- * (value "org.eclipse.jdt.ui.JavaElementCreationActionSet"
).
+ * (value "net.sourceforge.phpdt.ui.JavaElementCreationActionSet"
).
*
* @since 2.0
*/
-// public static final String ID_ELEMENT_CREATION_ACTION_SET= "org.eclipse.jdt.ui.JavaElementCreationActionSet"; //$NON-NLS-1$
+// public static final String ID_ELEMENT_CREATION_ACTION_SET= "net.sourceforge.phpdt.ui.JavaElementCreationActionSet"; //$NON-NLS-1$
/**
* The id of the Java Coding action set
- * (value "org.eclipse.jdt.ui.CodingActionSet"
).
+ * (value "net.sourceforge.phpdt.ui.CodingActionSet"
).
*
* @since 2.0
*/
-// public static final String ID_CODING_ACTION_SET= "org.eclipse.jdt.ui.CodingActionSet"; //$NON-NLS-1$
+// public static final String ID_CODING_ACTION_SET= "net.sourceforge.phpdt.ui.CodingActionSet"; //$NON-NLS-1$
/**
* The id of the Java action set for open actions
- * (value "org.eclipse.jdt.ui.A_OpenActionSet"
).
+ * (value "net.sourceforge.phpdt.ui.A_OpenActionSet"
).
*
* @since 2.0
*/
-// public static final String ID_OPEN_ACTION_SET= "org.eclipse.jdt.ui.A_OpenActionSet"; //$NON-NLS-1$
+// public static final String ID_OPEN_ACTION_SET= "net.sourceforge.phpdt.ui.A_OpenActionSet"; //$NON-NLS-1$
/**
* The id of the Java Search action set
- * (value org.eclipse.jdt.ui.SearchActionSet"
).
+ * (value net.sourceforge.phpdt.ui.SearchActionSet"
).
*
* @since 2.0
*/
-// public static final String ID_SEARCH_ACTION_SET= "org.eclipse.jdt.ui.SearchActionSet"; //$NON-NLS-1$
+// public static final String ID_SEARCH_ACTION_SET= "net.sourceforge.phpdt.ui.SearchActionSet"; //$NON-NLS-1$
/**
* The editor part id of the editor that presents Java compilation units
- * (value "org.eclipse.jdt.ui.CompilationUnitEditor"
).
+ * (value "net.sourceforge.phpdt.ui.CompilationUnitEditor"
).
*/
// public static final String ID_CU_EDITOR= "net.sourceforge.phpdt.ui.PHPUnitEditor"; //$NON-NLS-1$
/**
* The editor part id of the editor that presents Java binary class files
- * (value "org.eclipse.jdt.ui.ClassFileEditor"
).
+ * (value "net.sourceforge.phpdt.ui.ClassFileEditor"
).
*/
-// public static final String ID_CF_EDITOR= "org.eclipse.jdt.ui.ClassFileEditor"; //$NON-NLS-1$
+// public static final String ID_CF_EDITOR= "net.sourceforge.phpdt.ui.ClassFileEditor"; //$NON-NLS-1$
/**
* The editor part id of the code snippet editor
- * (value "org.eclipse.jdt.ui.SnippetEditor"
).
+ * (value "net.sourceforge.phpdt.ui.SnippetEditor"
).
*/
-// public static final String ID_SNIPPET_EDITOR= "org.eclipse.jdt.ui.SnippetEditor"; //$NON-NLS-1$
+// public static final String ID_SNIPPET_EDITOR= "net.sourceforge.phpdt.ui.SnippetEditor"; //$NON-NLS-1$
/**
* The view part id of the Packages view
- * (value "org.eclipse.jdt.ui.PackageExplorer"
).
+ * (value "net.sourceforge.phpdt.ui.PackageExplorer"
).
*
* When this id is used to access
* a view part with IWorkbenchPage.findView
or
@@ -137,7 +136,7 @@ public final class JavaUI {
/**
* The view part id of the type hierarchy part.
- * (value "org.eclipse.jdt.ui.TypeHierarchy"
).
+ * (value "net.sourceforge.phpdt.ui.TypeHierarchy"
).
*
* When this id is used to access
* a view part with IWorkbenchPage.findView
or
@@ -149,47 +148,47 @@ public final class JavaUI {
* @see org.eclipse.ui.IWorkbenchPage#findView(java.lang.String)
* @see org.eclipse.ui.IWorkbenchPage#showView(java.lang.String)
*/
-// public static final String ID_TYPE_HIERARCHY= "org.eclipse.jdt.ui.TypeHierarchy"; //$NON-NLS-1$
+ public static final String ID_TYPE_HIERARCHY= "net.sourceforge.phpdt.ui.TypeHierarchy"; //$NON-NLS-1$
/**
* The id of the Java Browsing Perspective
- * (value "org.eclipse.jdt.ui.JavaBrowsingPerspective"
).
+ * (value "net.sourceforge.phpdt.ui.JavaBrowsingPerspective"
).
*
* @since 2.0
*/
-// public static String ID_BROWSING_PERSPECTIVE= "org.eclipse.jdt.ui.JavaBrowsingPerspective"; //$NON-NLS-1$
+// public static String ID_BROWSING_PERSPECTIVE= "net.sourceforge.phpdt.ui.JavaBrowsingPerspective"; //$NON-NLS-1$
/**
* The view part id of the Java Browsing Projects view
- * (value "org.eclipse.jdt.ui.ProjectsView"
).
+ * (value "net.sourceforge.phpdt.ui.ProjectsView"
).
*
* @since 2.0
*/
-// public static String ID_PROJECTS_VIEW= "org.eclipse.jdt.ui.ProjectsView"; //$NON-NLS-1$
+// public static String ID_PROJECTS_VIEW= "net.sourceforge.phpdt.ui.ProjectsView"; //$NON-NLS-1$
/**
* The view part id of the Java Browsing Packages view
- * (value "org.eclipse.jdt.ui.PackagesView"
).
+ * (value "net.sourceforge.phpdt.ui.PackagesView"
).
*
* @since 2.0
*/
-// public static String ID_PACKAGES_VIEW= "org.eclipse.jdt.ui.PackagesView"; //$NON-NLS-1$
+// public static String ID_PACKAGES_VIEW= "net.sourceforge.phpdt.ui.PackagesView"; //$NON-NLS-1$
/**
* The view part id of the Java Browsing Types view
- * (value "org.eclipse.jdt.ui.TypesView"
).
+ * (value "net.sourceforge.phpdt.ui.TypesView"
).
*
* @since 2.0
*/
-// public static String ID_TYPES_VIEW= "org.eclipse.jdt.ui.TypesView"; //$NON-NLS-1$
+// public static String ID_TYPES_VIEW= "net.sourceforge.phpdt.ui.TypesView"; //$NON-NLS-1$
/**
* The view part id of the Java Browsing Members view
- * (value "org.eclipse.jdt.ui.MembersView"
).
+ * (value "net.sourceforge.phpdt.ui.MembersView"
).
*
* @since 2.0
*/
-// public static String ID_MEMBERS_VIEW= "org.eclipse.jdt.ui.MembersView"; //$NON-NLS-1$
+// public static String ID_MEMBERS_VIEW= "net.sourceforge.phpdt.ui.MembersView"; //$NON-NLS-1$
/**
* The class org.eclipse.debug.core.model.IProcess allows attaching
@@ -200,7 +199,7 @@ public final class JavaUI {
* was launched with.
* @deprecated
*/
-// public final static String ATTR_CMDLINE= "org.eclipse.jdt.ui.launcher.cmdLine"; //$NON-NLS-1$
+// public final static String ATTR_CMDLINE= "net.sourceforge.phpdt.ui.launcher.cmdLine"; //$NON-NLS-1$
/**
* Returns the shared images for the Java UI.
@@ -552,11 +551,11 @@ public final class JavaUI {
*
* @return the list of shared working copies
*
- * @see org.eclipse.jdt.core.JavaCore#getSharedWorkingCopies(org.eclipse.jdt.core.IBufferFactory)
+ * @see net.sourceforge.phpdt.core.JavaCore#getSharedWorkingCopies(net.sourceforge.phpdt.core.IBufferFactory)
* @since 2.0
*/
public static IWorkingCopy[] getSharedWorkingCopies() {
- return PHPCore.getSharedWorkingCopies(getBufferFactory());
+ return JavaCore.getSharedWorkingCopies(getBufferFactory());
}
/**
@@ -583,22 +582,21 @@ public final class JavaUI {
// }
// return (IWorkingCopy[])result.toArray(new IWorkingCopy[result.size()]);
// }
-
+
/**
* Returns the BufferFactory for the Java UI plug-in.
*
* @return the BufferFactory for the Java UI plug-in
*
- * @see org.eclipse.jdt.core.IBufferFactory
+ * @see net.sourceforge.phpdt.core.IBufferFactory
* @since 2.0
+ * @deprecated {@link IBufferFactory} has been replaced by {@link net.sourceforge.phpdt.core.WorkingCopyOwner}.
+ * The Java UI plug-in uses the primary working copy owner that can be accessed with null
in
+ * API's that require an owner
*/
public static IBufferFactory getBufferFactory() {
- PHPDocumentProvider provider= PHPeclipsePlugin.getDefault().getCompilationUnitDocumentProvider();
- if (provider != null)
- return provider.getBufferFactory();
- return null;
+ return PHPeclipsePlugin.getDefault().getBufferFactory();
}
-
/**
* Returns the DocumentProvider used for Java compilation units.
*