1 /******************************************************************************* 2 * Copyright (c) 2000, 2006 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.pde.core; 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 * Returns the line in the source file where the source representation of 29 * this object stops, or -1 if not known. 30 * 31 * @return the last line in the source file 32 */ 33 public int getStopLine(); 34 } 35