blob: 07f475f8668b38c8c97bbf8e42fc4addbb82f676 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.editors.text;
import org.eclipse.core.runtime.IPath;
/**
* This class gets the location for a given object.
* <p>
* In order to provided backward compatibility for clients of <code>ILocationProvider</code>,
* extension interfaces are used to provide a means of evolution. The following extension interfaces
* exist:
* </p>
* <ul>
* <li>{@link org.eclipse.ui.editors.text.ILocationProviderExtension} since version 3.3 allowing to
* get the location as <code>URI</code>.</li>
* </ul>
*
* @see org.eclipse.ui.editors.text.ILocationProviderExtension
* @since 3.0
*/
public interface ILocationProvider {
/**
* Returns the location of the given object or <code>null</code>.
* <p>
* The provided location is either a full path of a workspace resource or
* an absolute path in the local file system.
* </p>
*
* @param element the object for which to get the location
* @return the location of the given object or <code>null</code>
*/
IPath getPath(Object element);
}