1 | /* |
2 | * Copyright 2009, SDQ, IPD, Uni Karlsruhe (TH) |
3 | */ |
4 | package de.uka.ipd.sdq.pcm.gmf.resource.navigator; |
5 | |
6 | import org.eclipse.core.runtime.IAdapterFactory; |
7 | import org.eclipse.core.runtime.Platform; |
8 | import org.eclipse.core.runtime.PlatformObject; |
9 | import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor; |
10 | |
11 | /** |
12 | * @generated |
13 | */ |
14 | public abstract class PalladioComponentModelAbstractNavigatorItem extends |
15 | PlatformObject { |
16 | |
17 | /** |
18 | * @generated |
19 | */ |
20 | static { |
21 | final Class[] supportedTypes = new Class[] { ITabbedPropertySheetPageContributor.class }; |
22 | final ITabbedPropertySheetPageContributor propertySheetPageContributor = new ITabbedPropertySheetPageContributor() { |
23 | public String getContributorId() { |
24 | return "de.uka.ipd.sdq.pcm.gmf.resource"; //$NON-NLS-1$ |
25 | } |
26 | }; |
27 | Platform.getAdapterManager().registerAdapters( |
28 | new IAdapterFactory() { |
29 | |
30 | public Object getAdapter(Object adaptableObject, |
31 | Class adapterType) { |
32 | if (adaptableObject instanceof de.uka.ipd.sdq.pcm.gmf.resource.navigator.PalladioComponentModelAbstractNavigatorItem |
33 | && adapterType == ITabbedPropertySheetPageContributor.class) { |
34 | return propertySheetPageContributor; |
35 | } |
36 | return null; |
37 | } |
38 | |
39 | public Class[] getAdapterList() { |
40 | return supportedTypes; |
41 | } |
42 | }, |
43 | de.uka.ipd.sdq.pcm.gmf.resource.navigator.PalladioComponentModelAbstractNavigatorItem.class); |
44 | } |
45 | |
46 | /** |
47 | * @generated |
48 | */ |
49 | private Object myParent; |
50 | |
51 | /** |
52 | * @generated |
53 | */ |
54 | protected PalladioComponentModelAbstractNavigatorItem(Object parent) { |
55 | myParent = parent; |
56 | } |
57 | |
58 | /** |
59 | * @generated |
60 | */ |
61 | public Object getParent() { |
62 | return myParent; |
63 | } |
64 | |
65 | } |