blob: 0e23371a8cc29e1d37429747712220ecfd49bd65 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2007 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
*
*******************************************************************************/
package org.eclipse.dltk.debug.ui.launchConfigurations;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.ui.AbstractLaunchConfigurationTab;
public abstract class CommonScriptLaunchTab extends
AbstractLaunchConfigurationTab {
/**
* Config being modified
*/
private ILaunchConfiguration fLaunchConfig;
/**
* Returns the launch configuration this tab was initialized from.
*
* @return launch configuration this tab was initialized from
*/
protected ILaunchConfiguration getCurrentLaunchConfiguration() {
return fLaunchConfig;
}
/**
* Sets the launch configuration this tab was initialized from
*
* @param config
* launch configuration this tab was initialized from
*/
private void setCurrentLaunchConfiguration(ILaunchConfiguration config) {
fLaunchConfig = config;
}
/**
* Subclasses may override this method and should call
* super.initializeFrom(...).
*/
public void initializeFrom(ILaunchConfiguration config) {
setCurrentLaunchConfiguration(config);
}
}