KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > junit > refactoring > LaunchConfigurationContainer


1 /*******************************************************************************
2  * Copyright (c) 2000, 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.jdt.internal.junit.refactoring;
12
13 import org.eclipse.core.runtime.CoreException;
14
15 import org.eclipse.debug.core.ILaunchConfiguration;
16
17 public class LaunchConfigurationContainer {
18
19     public LaunchConfigurationContainer(ILaunchConfiguration configuration) {
20         fConfiguration= configuration;
21     }
22
23     private ILaunchConfiguration fConfiguration;
24
25     public String JavaDoc getName() {
26         return fConfiguration.getName();
27     }
28
29     public ILaunchConfiguration getConfiguration() {
30         return fConfiguration;
31     }
32
33     public void setConfiguration(ILaunchConfiguration configuration) {
34         fConfiguration= configuration;
35     }
36
37     public String JavaDoc getAttribute(String JavaDoc attribute, String JavaDoc defaultValue) throws CoreException {
38         return fConfiguration.getAttribute(attribute, defaultValue);
39     }
40 }
Popular Tags