Skip to main content
summaryrefslogtreecommitdiffstats
blob: da50bd7f7a7848d08f18d8b8810f010683bbc27c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*******************************************************************************
 * Copyright (c) 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     yyyymmdd bug      Email and other contact information
 * -------- -------- -----------------------------------------------------------
 * 20080221 146023 gilberta@ca.ibm.com - Gilbert Andrews 
 *******************************************************************************/
/**
 */
package org.eclipse.wst.command.internal.env.ui.dialog;

import org.eclipse.wst.command.internal.env.ui.common.LabelsAndIds;

public class RuntimeStruct {

	private String runtimeID_;
	private String runtimeLabel_;
	private LabelsAndIds scenarios_;
	
	public RuntimeStruct(String runtimeID){
		runtimeID_ = runtimeID;
	}

	public String getRuntimeID(){
		return runtimeID_;
	}

	public void setRuntimeLabel(String label){
		runtimeLabel_ = label;
	}
	
	public String getRuntimeLabel(){
		return runtimeLabel_;
	}
	
	public void setScenario(String id, String label){
		if(scenarios_ == null) scenarios_ = new LabelsAndIds(); 
		if(id == null || label == null) return;
		scenarios_.add(id,label);
	}
	
	public LabelsAndIds getScenarioLabels(){
		return scenarios_;
	}
	
}

Back to the top