KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > ischema > IPluginLocationProvider


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation 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://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.pde.internal.core.ischema;
12
13 import org.eclipse.core.runtime.IPath;
14
15 /**
16  * Classes that implement this interface are responsible for
17  * providing absolute path of the plug-in given its identifier.
18  */

19 public interface IPluginLocationProvider {
20 /**
21  * Returns the path relative to the plug-in with the provided id.
22  * @param pluginId the identifier of the plug-in for which a location
23  * is needed
24  * @param relativePath the path relative to the plug-in with the
25  * provided id
26  * @return the resolved path or <code>null</code> if
27  * plug-in with the required id cannot be found.
28  */

29     IPath getPluginRelativePath(String JavaDoc pluginId, IPath relativePath);
30 }
31
Popular Tags