/** * Constructs a new document adapter. * * @param owner the owner of this buffer * @param path the path of the file that backs the buffer * @since 3.2 */ public DocumentAdapter(IOpenable owner, IPath path) { Assert.isLegal(path != null); fOwner= owner; fPath= path; fLocationKind= LocationKind.NORMALIZE; initialize(); }
/** * Constructs a new document adapter. * * @param owner the owner of this buffer * @param path the path of the file that backs the buffer * @since 3.2 */ public DocumentAdapter(IOpenable owner, IPath path) { Assert.isLegal(path != null); fOwner= owner; fPath= path; fLocationKind= LocationKind.NORMALIZE; initialize(); }
/** * Constructs a new document adapter. * * @param owner the owner of this buffer * @param file the <code>IFile</code> that backs the buffer */ public DocumentAdapter(IOpenable owner, IFile file) { fOwner= owner; fFile= file; fPath= fFile.getFullPath(); fLocationKind= LocationKind.IFILE; initialize(); }
/** * Constructs a new document adapter. * * @param owner the owner of this buffer * @param file the <code>IFile</code> that backs the buffer */ public DocumentAdapter(IOpenable owner, IFile file) { fOwner= owner; fFile= file; fPath= fFile.getFullPath(); fLocationKind= LocationKind.IFILE; initialize(); }
/** * Constructs a new document adapter. * * @param owner the owner of this buffer * @param file the <code>IFile</code> that backs the buffer */ public DocumentAdapter(IOpenable owner, IFile file) { fOwner= owner; fFile= file; fPath= fFile.getFullPath(); fLocationKind= LocationKind.IFILE; initialize(); }
/** * Constructs a new document adapter. * * @param owner the owner of this buffer * @param path the path of the file that backs the buffer * @since 3.2 */ public DocumentAdapter(IOpenable owner, IPath path) { Assert.isLegal(path != null); fOwner= owner; fPath= path; fLocationKind= LocationKind.NORMALIZE; initialize(); }
/** * Constructs a new document adapter. * * @param owner the owner of this buffer * @param fileStore the file store of the file that backs the buffer * @param path the path of the file that backs the buffer * @since 3.6 */ public DocumentAdapter(IOpenable owner, IFileStore fileStore, IPath path) { Assert.isLegal(fileStore != null); Assert.isLegal(path != null); fOwner= owner; fFileStore= fileStore; fPath= path; fLocationKind= LocationKind.NORMALIZE; initialize(); }
/** * Constructs a new document adapter. * * @param owner the owner of this buffer * @param fileStore the file store of the file that backs the buffer * @param path the path of the file that backs the buffer * @since 3.6 */ public DocumentAdapter(IOpenable owner, IFileStore fileStore, IPath path) { Assert.isLegal(fileStore != null); Assert.isLegal(path != null); fOwner= owner; fFileStore= fileStore; fPath= path; fLocationKind= LocationKind.NORMALIZE; initialize(); }