blob: 1b3f9dc5618bc8b84a24c57236d16ce0f70a8934 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.debug.core.sourcelookup;
/**
* A source container type represents a kind of container of source code.
* For example, a source container type may be a project or a directory. A specific
* project or directory is represented by an instance of a source container type,
* which is called a source container (<code>ISourceContainer</code>).
* <p>
* A source container type is contributed via the <code>sourceContainerTypes</code>
* extension point, providing a delegate to the work specific to the contributed
* type. Following is an example contribution.
* <pre>
* &lt;extension point=&quot;org.eclipse.debug.core.sourceContainerTypes&quot;&gt;
* &lt;sourceContainerType
* name=&quot;Project&quot;
* class=&quot;org.eclipse.debug.internal.core.sourcelookup.containers.ProjectSourceContainerType&quot;
* id=&quot;org.eclipse.debug.core.containerType.project&quot;
* description=&quot;A project in the workspace&quot;&gt;
* &lt;/sourceContainerType&gt;
* &lt;/extension&gt;
* </pre>
* </p>
* <p>
* Clients are not intended to implement this interface. Instead, clients contributing
* a source container type implement {@link org.eclipse.debug.core.sourcelookup.ISourceContainerTypeDelegate}.
* </p>
* @see org.eclipse.debug.core.sourcelookup.ISourceContainer
* @see org.eclipse.debug.core.sourcelookup.ISourceContainerTypeDelegate
* @since 3.0
*/
public interface ISourceContainerType extends ISourceContainerTypeDelegate {
/**
* Returns the name of this source container type that can be used for
* presentation purposes. For example, <code>Working Set</code> or
* <code>Project</code>. The value returned is
* identical to the name specified in plugin.xml by the <code>name</code>
* attribute.
*
* @return the name of this source container type
*/
public String getName();
/**
* Returns the unique identifier associated with this source container type.
* The value returned is identical to the identifier specified in plugin.xml by
* the <code>id</code> attribute.
*
* @return the unique identifier associated with this source container type
*/
public String getId();
/**
* Returns a short description of this source container type that can be used
* for presenetation purposes, or <code>null</code> if none.
*
* @return a short description of this source container type, or <code>null</code>
*/
public String getDescription();
}