X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/CustomBufferFactory.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/CustomBufferFactory.java index 1b57e23..7bd764c 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/CustomBufferFactory.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/CustomBufferFactory.java @@ -1,43 +1,43 @@ /********************************************************************** -Copyright (c) 2000, 2003 IBM Corp. and others. -All rights reserved. This program and the accompanying materials -are made available under the terms of the Common Public License v1.0 -which accompanies this distribution, and is available at -http://www.eclipse.org/legal/cpl-v10.html + Copyright (c) 2000, 2003 IBM Corp. and others. + All rights reserved. This program and the accompanying materials + are made available under the terms of the Common Public License v1.0 + which accompanies this distribution, and is available at + http://www.eclipse.org/legal/cpl-v10.html -Contributors: - IBM Corporation - Initial implementation -**********************************************************************/ + Contributors: + IBM Corporation - Initial implementation + **********************************************************************/ package net.sourceforge.phpeclipse.phpeditor; -import org.eclipse.core.resources.IFile; -import org.eclipse.core.resources.IResource; - import net.sourceforge.phpdt.core.IBuffer; import net.sourceforge.phpdt.core.IBufferFactory; import net.sourceforge.phpdt.core.ICompilationUnit; import net.sourceforge.phpdt.core.IOpenable; +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IResource; /** * Creates IBuffers based on documents. + * * @deprecated since 3.0 no longer used */ public class CustomBufferFactory implements IBufferFactory { - + /* - * @see org.eclipse.jdt.core.IBufferFactory#createBuffer(org.eclipse.jdt.core.IOpenable) + * @see net.sourceforge.phpdt.core.IBufferFactory#createBuffer(net.sourceforge.phpdt.core.IOpenable) */ public IBuffer createBuffer(IOpenable owner) { if (owner instanceof ICompilationUnit) { - ICompilationUnit unit= (ICompilationUnit) owner; - ICompilationUnit original= unit.getPrimary(); - IResource resource= original.getResource(); + ICompilationUnit unit = (ICompilationUnit) owner; + ICompilationUnit original = unit.getPrimary(); + IResource resource = original.getResource(); if (resource instanceof IFile) { return new DocumentAdapter(unit, (IFile) resource); } - + } return DocumentAdapter.NULL; }