KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > launchConfigurations > LaunchConfigurationTypeContribution


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 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.debug.internal.ui.launchConfigurations;
12
13 import org.eclipse.debug.core.ILaunchConfigurationType;
14 import org.eclipse.ui.IPluginContribution;
15
16 /**
17  * A plug-in contribution (UI element) which contains a launch configuration
18  * type (Core element). Plug-in contributions are passed to the workbench
19  * activity support to filter elements from the UI.
20  */

21 class LaunchConfigurationTypeContribution implements IPluginContribution {
22     
23     protected ILaunchConfigurationType type;
24     
25     /**
26      * Creates a new plug-in contribution for the given type
27      *
28      * @param type the launch configuration type
29      */

30     public LaunchConfigurationTypeContribution(ILaunchConfigurationType type) {
31         this.type= type;
32     }
33     
34     /* (non-Javadoc)
35      * @see org.eclipse.ui.IPluginContribution#getLocalId()
36      */

37     public String JavaDoc getLocalId() {
38         return type.getIdentifier();
39     }
40
41     /* (non-Javadoc)
42      * @see org.eclipse.ui.IPluginContribution#getPluginId()
43      */

44     public String JavaDoc getPluginId() {
45         return type.getPluginIdentifier();
46     }
47     
48 }
49
Popular Tags