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;
* @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
// }
// return (IWorkingCopy[])result.toArray(new IWorkingCopy[result.size()]);
// }
-
+
/**
* Returns the BufferFactory for the Java UI plug-in.
*
*
* @see org.eclipse.jdt.core.IBufferFactory
* @since 2.0
+ * @deprecated {@link IBufferFactory} has been replaced by {@link org.eclipse.jdt.core.WorkingCopyOwner}.
+ * The Java UI plug-in uses the <i>primary working copy owner</i> that can be accessed with <code>null</code> 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.
*