public IPropertySheetPage getPropertySheetPage() {
   if (propertySheetPage == null) {
     propertySheetPage =
         new com.github.funthomas424242.rezeptsammler.rezept.resource.rezept.ui
             .RezeptPropertySheetPage();
     // add a slightly modified adapter factory that does not return any editors for
     // properties. this way, a model can never be modified through the properties view.
     AdapterFactory adapterFactory =
         new com.github.funthomas424242.rezeptsammler.rezept.resource.rezept.ui
                 .RezeptAdapterFactoryProvider()
             .getAdapterFactory();
     propertySheetPage.setPropertySourceProvider(
         new AdapterFactoryContentProvider(adapterFactory) {
           protected IPropertySource createPropertySource(
               Object object, IItemPropertySource itemPropertySource) {
             return new PropertySource(object, itemPropertySource) {
               protected IPropertyDescriptor createPropertyDescriptor(
                   IItemPropertyDescriptor itemPropertyDescriptor) {
                 return new PropertyDescriptor(object, itemPropertyDescriptor) {
                   public CellEditor createPropertyEditor(Composite composite) {
                     return null;
                   }
                 };
               }
             };
           }
         });
     highlighting.addSelectionChangedListener(propertySheetPage);
   }
   return propertySheetPage;
 }
 public void invalidateTextRepresentation() {
   ISourceViewer viewer = getSourceViewer();
   if (viewer != null) {
     viewer.invalidateTextPresentation();
   }
   highlighting.resetValues();
 }
 /**
  * Returns the outline page this is associated with this editor. If no outline page exists, a new
  * one is created.
  */
 private com.github.funthomas424242.rezeptsammler.rezept.resource.rezept.ui.RezeptOutlinePage
     getOutlinePage() {
   if (outlinePage == null) {
     outlinePage =
         new com.github.funthomas424242.rezeptsammler.rezept.resource.rezept.ui.RezeptOutlinePage(
             this);
     // Connect highlighting class and outline page for event notification
     outlinePage.addSelectionChangedListener(highlighting);
     highlighting.addSelectionChangedListener(outlinePage);
   }
   return outlinePage;
 }