1 | package de.uka.ipd.sdq.pcm.cost.editor.customisation; |
2 | |
3 | import org.eclipse.emf.common.notify.AdapterFactory; |
4 | import org.eclipse.emf.edit.provider.IItemPropertySource; |
5 | import org.eclipse.ui.views.properties.IPropertySource; |
6 | |
7 | import de.uka.ipd.sdq.pcm.cost.ScalarFunction; |
8 | import de.uka.ipd.sdq.pcmbench.propertytabs.PalladioAdapterFactoryContentProvider; |
9 | import de.uka.ipd.sdq.stoex.RandomVariable; |
10 | |
11 | public class CostPalladioAdapterFactoryContentProvider extends |
12 | PalladioAdapterFactoryContentProvider { |
13 | |
14 | public CostPalladioAdapterFactoryContentProvider( |
15 | AdapterFactory adapterFactory) { |
16 | super(adapterFactory); |
17 | } |
18 | |
19 | @Override |
20 | protected IPropertySource createPropertySource(Object object, IItemPropertySource itemPropertySource) { |
21 | if (object instanceof ScalarFunction) |
22 | { |
23 | return getRandomVariablePropertySheet(object, itemPropertySource); |
24 | } |
25 | else |
26 | return super.createPropertySource(object, itemPropertySource); |
27 | } |
28 | |
29 | |
30 | } |