| 54 | |
| 55 | * Change your XXXPropertySection in the package "sheet" as follows: |
| 56 | {{{ |
| 57 | /** |
| 58 | * @generated NOT |
| 59 | */ |
| 60 | public IPropertySource getPropertySource(Object object) { |
| 61 | if (object instanceof IPropertySource) { |
| 62 | return (IPropertySource) object; |
| 63 | } |
| 64 | AdapterFactory af = getAdapterFactory(object); |
| 65 | if (af != null) { |
| 66 | IItemPropertySource ips = (IItemPropertySource) af.adapt(object, |
| 67 | IItemPropertySource.class); |
| 68 | if (ips != null) { |
| 69 | return new EMFCompositePropertySource(object, ips, |
| 70 | null) { |
| 71 | protected IPropertyDescriptor newPropertyDescriptor( |
| 72 | IItemPropertyDescriptor itemPropertyDescriptor) { |
| 73 | return new ExhibitionPropertyDescriptor(object, |
| 74 | itemPropertyDescriptor, getCategory()); |
| 75 | } |
| 76 | }; |
| 77 | } |
| 78 | } |
| 79 | if (object instanceof IAdaptable) { |
| 80 | return (IPropertySource) ((IAdaptable) object) |
| 81 | .getAdapter(IPropertySource.class); |
| 82 | } |
| 83 | return null; |
| 84 | } |
| 85 | }}} |