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 | * This class provides a property sheet section to edit ProvidesComponentTypes |
16 | */ |
17 | public class ComponentPropertySection extends GenericEMFPropertySection { |
18 | |
19 | @Override |
20 | protected EClass getEClassToEdit() { |
21 | return RepositoryPackage.eINSTANCE.getProvidesComponentType(); |
22 | } |
23 | |
24 | @Override |
25 | protected Collection<EMFPropertySectionFieldInfo> getEditableTextFields() { |
26 | Collection<EMFPropertySectionFieldInfo> infos = new ArrayList<EMFPropertySectionFieldInfo>(); |
27 | infos.add(new EMFPropertySectionFieldInfo(RepositoryPackage.PROVIDES_COMPONENT_TYPE__ENTITY_NAME,"Name")); |
28 | infos.add(new EMFPropertySectionFieldInfo(RepositoryPackage.PROVIDES_COMPONENT_TYPE__ID,"ID")); |
29 | return infos; |
30 | } |
31 | } |