KickJava   Java API By Example, From Geeks To Geeks.

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


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.core.ILaunchDelegate;
14 import org.eclipse.ui.IPluginContribution;
15
16 /**
17  * This class provides a wrapper for a launch delegate so tht it can be filtered from UI and launching choices
18  * @since 3.3
19  */

20 public class LaunchDelegateContribution implements IPluginContribution {
21
22     private ILaunchDelegate fDelegate = null;
23     
24     /**
25      * Constructor
26      * @param delegate
27      */

28     public LaunchDelegateContribution(ILaunchDelegate delegate) {
29         fDelegate = delegate;
30     }
31     
32     /**
33      * @see org.eclipse.ui.IPluginContribution#getLocalId()
34      */

35     public String JavaDoc getLocalId() {
36         return fDelegate.getId();
37     }
38
39     /**
40      * @see org.eclipse.ui.IPluginContribution#getPluginId()
41      */

42     public String JavaDoc getPluginId() {
43         return fDelegate.getPluginIdentifier();
44     }
45
46 }
47
Popular Tags