blob: 2df528f7ced9f3bfc8d91e173ea84cde041c9e5e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006 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.internal.ui.launchConfigurations;
import org.eclipse.debug.core.ILaunchDelegate;
import org.eclipse.ui.IPluginContribution;
/**
* This class provides a wrapper for a launch delegate so tht it can be filtered from UI and launching choices
* @since 3.3
*
* EXPERIMENTAL
*/
public class LaunchDelegateContribution implements IPluginContribution {
private ILaunchDelegate fDelegate = null;
/**
* Constructor
* @param delegate
*/
public LaunchDelegateContribution(ILaunchDelegate delegate) {
fDelegate = delegate;
}
/**
* @see org.eclipse.ui.IPluginContribution#getLocalId()
*/
public String getLocalId() {
return fDelegate.getId();
}
/**
* @see org.eclipse.ui.IPluginContribution#getPluginId()
*/
public String getPluginId() {
return fDelegate.getPluginIdentifier();
}
}