1 /*******************************************************************************
2  * Copyright (c) 2003, 2015 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.ui;
15 
16 /**
17  * An interface that descriptor classes may implement in addition to their
18  * descriptor interface. This indicates that they may or may not originate from
19  * a plugin contribution. This is useful in various activity filtering
20  * scenarios.
21  *
22  * @since 3.0
23  */
24 public interface IPluginContribution {
25 
26 	/**
27 	 * @return the local id of the contribution. Must not be <code>null</code>. This
28 	 *         should correspond to the extension-specific identifier for a given
29 	 *         contribution.
30 	 */
getLocalId()31 	String getLocalId();
32 
33 	/**
34 	 * @return the id of the originating plugin. Can be <code>null</code> if this
35 	 *         contribution did not originate from a plugin.
36 	 */
getPluginId()37 	String getPluginId();
38 }
39