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;
// }
// 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.
*