01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.core;
11:
12: /**
13: * This interface indicates that a model object is created by parsing an
14: * editable source file and can be traced back to a particular location in the
15: * file.
16: *
17: * @since 2.0
18: */
19: public interface ISourceObject {
20: /**
21: * Returns the line in the source file where the source representation of
22: * this object starts, or -1 if not known.
23: *
24: * @return the first line in the source file
25: */
26: public int getStartLine();
27:
28: /**
29: * Returns the line in the source file where the source representation of
30: * this object stops, or -1 if not known.
31: *
32: * @return the last line in the source file
33: */
34: public int getStopLine();
35: }
|