2 * Copyright (c) 2002-2004 Widespace, OU and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://solareclipse.sourceforge.net/legal/cpl-v10.html
9 * Igor Malinin - initial contribution
11 * $Id: IDocumentView.java,v 1.1 2004-09-02 18:26:29 jsurfer Exp $
14 package net.sourceforge.phpeclipse.ui.text.rules;
16 import org.eclipse.jface.text.IDocument;
19 * View to part of parent document. Provides methods for translating character
20 * offsets between this view and parent document.
22 * @author Igor Malinin
24 public interface IDocumentView extends IDocument {
26 IDocument getParentDocument();
28 int getParentOffset(int localOffset);
30 int getLocalOffset(int parentOffset);