| 1 | package de.uka.ipd.sdq.pcmbench.tabs; |
| 2 | |
| 3 | /** |
| 4 | * @author Snowball |
| 5 | * This class is a record to store the specification of a generic input field |
| 6 | * for the tabbed propery sheets. The generic fields can edit any eCore attribute |
| 7 | * given |
| 8 | */ |
| 9 | public class EMFPropertySectionFieldInfo { |
| 10 | |
| 11 | private int featureID = 0; |
| 12 | private String label = null; |
| 13 | |
| 14 | /** |
| 15 | * The ID of the eCore feature which is being specified in this record |
| 16 | * @return the feature which is edited in the field specified here |
| 17 | */ |
| 18 | public int getFeatureID() { |
| 19 | return featureID; |
| 20 | } |
| 21 | /** |
| 22 | * Returns the display label displayed in front of the edit field |
| 23 | * which is used to edit the stored feature |
| 24 | * @return the label which is displayed in front of the edit field |
| 25 | */ |
| 26 | public String getLabel() { |
| 27 | return label; |
| 28 | } |
| 29 | |
| 30 | /** |
| 31 | * Constructor of the Field Info record. It stores the EMF feature id |
| 32 | * and the display label of the described field |
| 33 | * @param featureID The id of the EMF feature |
| 34 | * @param label The display label which is displayed in front of the edit field |
| 35 | */ |
| 36 | public EMFPropertySectionFieldInfo(int featureID, String label) |
| 37 | { |
| 38 | this.featureID = featureID; |
| 39 | this.label = label; |
| 40 | } |
| 41 | } |