| 1 | /** |
| 2 | * |
| 3 | */ |
| 4 | package de.uka.ipd.sdq.pcmbench.tabs; |
| 5 | |
| 6 | import java.util.ArrayList; |
| 7 | import java.util.Collection; |
| 8 | |
| 9 | import org.eclipse.emf.ecore.EClass; |
| 10 | |
| 11 | import de.uka.ipd.sdq.pcm.repository.RepositoryPackage; |
| 12 | |
| 13 | /** |
| 14 | * @author Snowball |
| 15 | * A property sheet to edit Interfaces of the PCM Repository package |
| 16 | */ |
| 17 | public class InterfacePropertySection extends GenericEMFPropertySection { |
| 18 | |
| 19 | /* (non-Javadoc) |
| 20 | * @see de.uka.ipd.sdq.pcmbench.tabs.GenericEMFPropertySection#getEClassToEdit() |
| 21 | */ |
| 22 | @Override |
| 23 | protected EClass getEClassToEdit() { |
| 24 | return RepositoryPackage.eINSTANCE.getInterface(); |
| 25 | } |
| 26 | |
| 27 | /* (non-Javadoc) |
| 28 | * @see de.uka.ipd.sdq.pcmbench.tabs.GenericEMFPropertySection#getEditableTextFields() |
| 29 | */ |
| 30 | @Override |
| 31 | protected Collection<EMFPropertySectionFieldInfo> getEditableTextFields() { |
| 32 | Collection<EMFPropertySectionFieldInfo> infos = new ArrayList<EMFPropertySectionFieldInfo>(); |
| 33 | infos.add(new EMFPropertySectionFieldInfo(RepositoryPackage.INTERFACE__ENTITY_NAME,"Name")); |
| 34 | infos.add(new EMFPropertySectionFieldInfo(RepositoryPackage.INTERFACE__ID,"ID")); |
| 35 | return infos; |
| 36 | } |
| 37 | |
| 38 | } |