KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 2006, 2007 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.internal.ui.LaunchConfigurationTabExtension;
14 import org.eclipse.ui.IPluginContribution;
15
16 /**
17  * This class provides a wrapper for a launch tab contribution so that it can be filtered from the UI
18  * via the use of capabilities
19  *
20  * @since 3.3
21  */

22 public class LaunchTabContribution implements IPluginContribution {
23
24     LaunchConfigurationTabExtension fTab = null;
25     
26     public LaunchTabContribution(LaunchConfigurationTabExtension tab) {
27         fTab = tab;
28     }
29
30     /**
31      * @see org.eclipse.ui.IPluginContribution#getLocalId()
32      */

33     public String JavaDoc getLocalId() {
34         return fTab.getIdentifier();
35     }
36
37     /**
38      * @see org.eclipse.ui.IPluginContribution#getPluginId()
39      */

40     public String JavaDoc getPluginId() {
41         return fTab.getPluginIdentifier();
42     }
43
44 }
45
Popular Tags