KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > editor > feature > Choice


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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.pde.internal.ui.editor.feature;
12 public class Choice {
13     private String JavaDoc label;
14     private String JavaDoc value;
15     public Choice(String JavaDoc value, String JavaDoc label) {
16         this.value = value;
17         this.label = label;
18     }
19     
20     public String JavaDoc getValue() {
21         return value;
22     }
23     public String JavaDoc getLabel() {
24         return label;
25     }
26     public String JavaDoc toString() {
27         return label;
28     }
29 }
30
Popular Tags