01: package newprocess.diagram.navigator;
02:
03: import org.eclipse.core.runtime.IAdaptable;
04: import org.eclipse.core.runtime.IAdapterFactory;
05: import org.eclipse.core.runtime.Platform;
06:
07: import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor;
08:
09: /**
10: * @generated
11: */
12: public abstract class New_processAbstractNavigatorItem implements
13: IAdaptable {
14:
15: /**
16: * @generated
17: */
18: static {
19: final Class[] supportedTypes = new Class[] { ITabbedPropertySheetPageContributor.class };
20: final ITabbedPropertySheetPageContributor propertySheetPageContributor = new ITabbedPropertySheetPageContributor() {
21: public String getContributorId() {
22: return "org.concept.diagram"; //$NON-NLS-1$
23: }
24: };
25: Platform.getAdapterManager().registerAdapters(
26: new IAdapterFactory() {
27:
28: public Object getAdapter(Object adaptableObject,
29: Class adapterType) {
30: if (adaptableObject instanceof New_processAbstractNavigatorItem
31: && adapterType == ITabbedPropertySheetPageContributor.class) {
32: return propertySheetPageContributor;
33: }
34: return null;
35: }
36:
37: public Class[] getAdapterList() {
38: return supportedTypes;
39: }
40: }, New_processAbstractNavigatorItem.class);
41: }
42:
43: /**
44: * @generated
45: */
46: private Object myParent;
47:
48: /**
49: * @generated
50: */
51: protected New_processAbstractNavigatorItem(Object parent) {
52: myParent = parent;
53: }
54:
55: /**
56: * @generated
57: */
58: public Object getParent() {
59: return myParent;
60: }
61:
62: /**
63: * @generated
64: */
65: public Object getAdapter(Class adapter) {
66: return Platform.getAdapterManager().getAdapter(this, adapter);
67: }
68:
69: }
|